mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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>
This commit is contained in:
parent
8966083178
commit
e945b3706c
1 changed files with 1 additions and 1 deletions
|
@ -4249,7 +4249,7 @@ beach:
|
|||
|
||||
*drained = chain->drained;
|
||||
|
||||
if (*drained)
|
||||
if (*drained && !chain->parent) /* only emit signal from top chain */
|
||||
g_signal_emit (dbin, gst_decode_bin_signals[SIGNAL_DRAINED], 0, NULL);
|
||||
|
||||
return handled;
|
||||
|
|
Loading…
Reference in a new issue