diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-10-01 16:09:13 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-10-19 15:57:18 +0200 |
commit | 86a56cc48c521d4fbd4c73c903a58787313458d4 (patch) | |
tree | a6fb8b4d42eaca66e4de9686ce7587f28c2dd8d4 | |
parent | 4ce0249911fb4dda1a7e643a91490a10f2a6d415 (diff) | |
download | gstreamer-plugins-good-86a56cc48c521d4fbd4c73c903a58787313458d4.tar.gz |
rtspsrc: Ignore medias marked as sendonly
We're never going to receive anything from them, so don't create pads
for them. These medias are destinations where *we* could send something.
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 1363ccd80..87a21fa37 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1535,6 +1535,9 @@ gst_rtspsrc_collect_payloads (GstRTSPSrc * src, const GstSDPMessage * sdp, else goto unknown_proto; + if (gst_sdp_media_get_attribute_val (media, "sendonly") != NULL) + goto sendonly_media; + /* Parse global SDP attributes once */ global_caps = gst_caps_new_empty_simple ("application/x-unknown"); GST_DEBUG ("mapping sdp session level attributes to caps"); @@ -1602,6 +1605,11 @@ unknown_proto: GST_ERROR_OBJECT (src, "unknown proto in media: '%s'", proto); return; } +sendonly_media: + { + GST_DEBUG_OBJECT (src, "sendonly media ignored"); + return; + } } static const gchar * |