adaptivedemux: add replaced flag to not error out on bitrate change
authorThiago Santos <thiagossantos@gmail.com>
Sat, 14 Oct 2017 20:22:18 +0000 (13:22 -0700)
committerThiago Santos <thiagossantos@gmail.com>
Thu, 26 Oct 2017 08:03:21 +0000 (01:03 -0700)
commitc2d34d1e44fbe6c4a0e7792b8d22e1059a4b1db7
treeb8ce93d2c20e4810a58453954ee8d4f4a3ffde47
parentee2d4c955fd66e487331bc129c51f029fded8b47
adaptivedemux: add replaced flag to not error out on bitrate change

When switching bitrates we set the old streams as cancelled, but it
could also be confused with a cancel due to other reasons (as an error)
and it would lead the element to stop the pipeline mistankely. This
would happen when the stream being replaced was waiting for a manifest
update on live. Ss make it sure that we are stopping for switching
bitrates to avoid erroring out.

https://bugzilla.gnome.org/show_bug.cgi?id=789457
gst-libs/gst/adaptivedemux/gstadaptivedemux.c
gst-libs/gst/adaptivedemux/gstadaptivedemux.h