diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 7b52e528f8..976d18c28c 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1606,6 +1606,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"); @@ -1675,6 +1678,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 *