hlsdemux: Re-use streams if possible 22/262822/1
authorEdward Hervey <edward@centricular.com>
Tue, 3 Nov 2020 16:48:02 +0000 (17:48 +0100)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 20 Aug 2021 06:44:31 +0000 (15:44 +0900)
commit57873655c68f4f9d052f6307f09ba5931d892915
tree12357f21e05fdcbc62bb259d8ca2cb97f9e8f38a
parentfdf99f678690a432421b973c879fc7f7d8603e9d
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