GNOME Bugzilla – Bug 734775
androidmedia: Should not send EOS when drained
Last modified: 2014-08-14 12:27:48 UTC
+++ This bug was initially created as a clone of Bug #734617 +++ This is for the audio decoder and video decoder and video encoder. Currently we forward an EOS event from our srcpad task whenever GstVideo*::finish() is called or GstAudio*::handle_frame(NULL). This is however used for draining. We should only drain, and then let the EOS event be handled from the streaming thread of the sinkpad (which is no problem as the srcpad streaming thread is not doing anything anymore after draining).
commit 8f25220b9c0426c38122419060cbbc63ab1a74d2 Author: Sebastian Dröge <sebastian@centricular.com> Date: Thu Aug 14 15:26:53 2014 +0300 androidmedia: Make sure to unblock any thread waiting on the drain condition variable when errors happen commit ca62186797271ebda3966fd9f0de3b961c83c50e Author: Sebastian Dröge <sebastian@centricular.com> Date: Thu Aug 14 15:24:21 2014 +0300 androidmedia: Fix draining logic to let the base class handle EOS events https://bugzilla.gnome.org//show_bug.cgi?id=734775