mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: activate pad before setting caps
Seting caps on an inactive flushing pad does nothing.
This commit is contained in:
parent
07cc855b24
commit
0a43cfedef
1 changed files with 2 additions and 1 deletions
|
@ -5127,14 +5127,15 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
|
||||||
gst_pad_use_fixed_caps (stream->pad);
|
gst_pad_use_fixed_caps (stream->pad);
|
||||||
gst_pad_set_event_function (stream->pad, gst_qtdemux_handle_src_event);
|
gst_pad_set_event_function (stream->pad, gst_qtdemux_handle_src_event);
|
||||||
gst_pad_set_query_function (stream->pad, gst_qtdemux_handle_src_query);
|
gst_pad_set_query_function (stream->pad, gst_qtdemux_handle_src_query);
|
||||||
|
gst_pad_set_active (stream->pad, TRUE);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (qtdemux, "setting caps %" GST_PTR_FORMAT, stream->caps);
|
GST_DEBUG_OBJECT (qtdemux, "setting caps %" GST_PTR_FORMAT, stream->caps);
|
||||||
gst_pad_set_caps (stream->pad, stream->caps);
|
gst_pad_set_caps (stream->pad, stream->caps);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (qtdemux, "adding pad %s %p to qtdemux %p",
|
GST_DEBUG_OBJECT (qtdemux, "adding pad %s %p to qtdemux %p",
|
||||||
GST_OBJECT_NAME (stream->pad), stream->pad, qtdemux);
|
GST_OBJECT_NAME (stream->pad), stream->pad, qtdemux);
|
||||||
gst_pad_set_active (stream->pad, TRUE);
|
|
||||||
gst_element_add_pad (GST_ELEMENT_CAST (qtdemux), stream->pad);
|
gst_element_add_pad (GST_ELEMENT_CAST (qtdemux), stream->pad);
|
||||||
|
|
||||||
if (stream->pending_tags)
|
if (stream->pending_tags)
|
||||||
gst_tag_list_free (stream->pending_tags);
|
gst_tag_list_free (stream->pending_tags);
|
||||||
stream->pending_tags = list;
|
stream->pending_tags = list;
|
||||||
|
|
Loading…
Reference in a new issue