adaptivedemux2: Add state checks and clean up obsolete variables
authorJan Schmidt <jan@centricular.com>
Tue, 16 Aug 2022 13:01:46 +0000 (23:01 +1000)
committerJan Schmidt <jan@centricular.com>
Fri, 4 Nov 2022 16:24:26 +0000 (03:24 +1100)
commit93f80bb061a031bfa8a6b0b8e6320107243926f1
treee5c422f0108154a5a22c984b50f31ff670d49c27
parent730ed3a69a9ff049d8c43a0f58e1e15fb43ba465
adaptivedemux2: Add state checks and clean up obsolete variables

The cancelled flag was only set in the stream finalize()
method, after all activity on the stream has stopped anyway.
Replace uses of cancelled with checks on the stream state.

Remove the replaced flag, which was checked but never set
to TRUE anywhere any more.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3314>
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.h