mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
hlsdemux: Only switch pads if the caps are changing
This commit is contained in:
parent
6342d225bf
commit
76e74547c7
1 changed files with 1 additions and 2 deletions
|
@ -746,8 +746,7 @@ gst_hls_demux_stream_loop (GstHLSDemux * demux)
|
|||
|
||||
buf = gst_fragment_get_buffer (fragment);
|
||||
|
||||
if (G_UNLIKELY (!srccaps || !gst_caps_is_equal_fixed (bufcaps, srccaps)
|
||||
|| demux->need_segment)) {
|
||||
if (G_UNLIKELY (!srccaps || !gst_caps_is_equal_fixed (bufcaps, srccaps))) {
|
||||
switch_pads (demux, bufcaps);
|
||||
demux->need_segment = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue