hlsdemux: Only switch pads if the caps are changing
This commit is contained in:
parent
6342d225bf
commit
76e74547c7
@ -746,8 +746,7 @@ gst_hls_demux_stream_loop (GstHLSDemux * demux)
|
|||||||
|
|
||||||
buf = gst_fragment_get_buffer (fragment);
|
buf = gst_fragment_get_buffer (fragment);
|
||||||
|
|
||||||
if (G_UNLIKELY (!srccaps || !gst_caps_is_equal_fixed (bufcaps, srccaps)
|
if (G_UNLIKELY (!srccaps || !gst_caps_is_equal_fixed (bufcaps, srccaps))) {
|
||||||
|| demux->need_segment)) {
|
|
||||||
switch_pads (demux, bufcaps);
|
switch_pads (demux, bufcaps);
|
||||||
demux->need_segment = TRUE;
|
demux->need_segment = TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user