mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
rtsp: set caps after activating the pad
This commit is contained in:
parent
0ed9e07c5d
commit
943b56ff8e
1 changed files with 3 additions and 3 deletions
|
@ -3091,15 +3091,15 @@ gst_rtspsrc_activate_streams (GstRTSPSrc * src)
|
||||||
g_object_set (G_OBJECT (stream->udpsrc[0]), "timeout", (guint64) 0, NULL);
|
g_object_set (G_OBJECT (stream->udpsrc[0]), "timeout", (guint64) 0, NULL);
|
||||||
}
|
}
|
||||||
if (stream->srcpad) {
|
if (stream->srcpad) {
|
||||||
|
GST_DEBUG_OBJECT (src, "activating stream pad %p", stream);
|
||||||
|
gst_pad_set_active (stream->srcpad, TRUE);
|
||||||
|
|
||||||
/* if we don't have a session manager, set the caps now. If we have a
|
/* if we don't have a session manager, set the caps now. If we have a
|
||||||
* session, we will get a notification of the pad and the caps. */
|
* session, we will get a notification of the pad and the caps. */
|
||||||
if (!src->manager) {
|
if (!src->manager) {
|
||||||
GST_DEBUG_OBJECT (src, "setting pad caps for stream %p", stream);
|
GST_DEBUG_OBJECT (src, "setting pad caps for stream %p", stream);
|
||||||
gst_pad_set_caps (stream->srcpad, stream->caps);
|
gst_pad_set_caps (stream->srcpad, stream->caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (src, "activating stream pad %p", stream);
|
|
||||||
gst_pad_set_active (stream->srcpad, TRUE);
|
|
||||||
/* add the pad */
|
/* add the pad */
|
||||||
if (!stream->added) {
|
if (!stream->added) {
|
||||||
GST_DEBUG_OBJECT (src, "adding stream pad %p", stream);
|
GST_DEBUG_OBJECT (src, "adding stream pad %p", stream);
|
||||||
|
|
Loading…
Reference in a new issue