decodebin2: fire drained signal where appropriate

This will allow playbin2 to send its about-to-finish signal.
Taken out (apparently by mistake) by the EOS rewrite in july.

https://bugzilla.gnome.org/show_bug.cgi?id=661202
This commit is contained in:
Vincent Penquerc'h 2011-10-07 17:41:32 +01:00 committed by Sebastian Dröge
parent 26e1c2d628
commit 5e9862b2ba

View file

@ -3165,6 +3165,9 @@ beach:
GST_DEBUG ("Chain %p (handled:%d, last_group:%d, drained:%d, switched:%d)",
chain, handled, *last_group, *drained, *switched);
if (*drained)
g_signal_emit (dbin, gst_decode_bin_signals[SIGNAL_DRAINED], 0, NULL);
return handled;
}