vaapidecode: acquire lock only if the mutex exists.
authorPhilip Lorenz <philip@bithub.de>
Tue, 4 Sep 2012 11:54:19 +0000 (13:54 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 7 Sep 2012 13:03:48 +0000 (15:03 +0200)
commitc406e4f8121a7e8e873ee0e3da07daf3d03d4092
tree56660698d8cbb0760bace352fba6a2db75dbbc2c
parent94ee10e5476a0b21cca586aac0472aeefe99dd97
vaapidecode: acquire lock only if the mutex exists.

When playback stops the GstVaapiDecode object is reset into a clean
state. However, surfaces may still be referenced by library users and
unreferencing them after the reset triggers an access to an unset mutex.

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