hlsdemux: Re-use streams if possible 91/262891/1
authorEdward Hervey <edward@centricular.com>
Tue, 3 Nov 2020 16:48:02 +0000 (17:48 +0100)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 23 Aug 2021 06:47:02 +0000 (15:47 +0900)
commit70e59f234089067485ff038c991ad0d20b52e2a9
tree89b19ae8a1c7eec6661a04f4aed3774b7244e695
parentcd10810d1e8baa6b42445473acf5a6f6b5f16204
hlsdemux: Re-use streams if possible

When switching variants, try to re-use existing streams/pads instead of creating
new ones. When dealing with urisourcebin and decodebin3 this is not only the
expected way but also avoids a lot of buffering/hang issues.

Change-Id: I32cf158a0695e5af7de3a2e6001a0e9748f9e2b3
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1757>
ext/hls/gsthlsdemux.c
ext/hls/gsthlsdemux.h