vaapiencode: fix possible hang on SIGINT.
authorWind Yuan <feng.yuan@intel.com>
Tue, 17 Dec 2013 09:23:42 +0000 (04:23 -0500)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 14 Jan 2014 18:14:41 +0000 (19:14 +0100)
commit830566c17e3e2be79a2bbc6caf5b8e53643b3be8
treec6e9e25573c69d6cef9cb25abc2f1b07d1aae9f4
parentd3b672411d2161f4ef0703ea4ae4f33e42cd6d56
vaapiencode: fix possible hang on SIGINT.

vaapiencode might hang when the pipeline is stopped without any EOS,
e.g. when <Ctrl>+C is pressed, thus causing the srcpad task to keep
running and locked. This fixes a possible deadlock on state change
from PAUSED to READY.

https://bugzilla.gnome.org/show_bug.cgi?id=720584

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst/vaapi/gstvaapiencode.c