mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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.
This commit is contained in:
parent
58f0eabd61
commit
26cf8c1dc9
1 changed files with 8 additions and 0 deletions
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue