hlsdemux: Re-use streams if possible
authorEdward Hervey <edward@centricular.com>
Tue, 3 Nov 2020 16:48:02 +0000 (17:48 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 11 Nov 2020 04:06:05 +0000 (04:06 +0000)
commit1246b448eec08c698db7da6b133db25571de6a6c
treed8b70eb5ec612413797fb6e4b9f614d09887a096
parentf1fdbfc5bdb74adbe65c8c0eef30b45c426cc323
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.

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