decodebin: only emit 'drained' signal when top chain is drained
authoruno20001 <regisztralo111@gmail.com>
Wed, 27 May 2020 13:11:17 +0000 (15:11 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 27 May 2020 18:51:31 +0000 (18:51 +0000)
commite945b3706c86aa13d05d195a1170e6277a247548
tree4796fbc3acf1013a71e755a62ae6d5f0999b736e
parent896608317890021502d29197990a1147990c8e26
decodebin: only emit 'drained' signal when top chain is drained

Without this, decodebin emits 'drained' multiple times which then
causes (uri)playbin to emit 'about-to-finish' multiple times for
for file types.

Fixes #751

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/673>
gst/playback/gstdecodebin2.c