vaapidecode: fix dead-locks with decoder task.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 20 Nov 2013 18:21:05 +0000 (19:21 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 21 Nov 2013 10:08:23 +0000 (11:08 +0100)
commitaf4785b722a0e844f7aee91407e08feba15abb70
tree735aa74fd2090ed6f32f7d4d810ae18b733d2d4c
parent6e85f08e33db4a227e4c9c373926a156698e5403
vaapidecode: fix dead-locks with decoder task.

Review all interactions between the main video decoder stream thread
and the decode task to derive a correct sequence of operations for
decoding. Also avoid extra atomic operations that become implicit under
the GstVideoDecoder stream lock.
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapidecode.h