mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
hlsdemux: set the pad's caps before adding it
This commit is contained in:
parent
57ae8c4bf5
commit
a62aa2b774
1 changed files with 1 additions and 1 deletions
|
@ -570,8 +570,8 @@ switch_pads (GstHLSDemux * demux, GstCaps * newcaps)
|
|||
GST_DEBUG_FUNCPTR (gst_hls_demux_src_query));
|
||||
gst_pad_set_element_private (demux->srcpad, demux);
|
||||
gst_pad_set_active (demux->srcpad, TRUE);
|
||||
gst_element_add_pad (GST_ELEMENT (demux), demux->srcpad);
|
||||
gst_pad_set_caps (demux->srcpad, newcaps);
|
||||
gst_element_add_pad (GST_ELEMENT (demux), demux->srcpad);
|
||||
|
||||
gst_element_no_more_pads (GST_ELEMENT (demux));
|
||||
|
||||
|
|
Loading…
Reference in a new issue