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 11:54:30 +0000 (13:54 +0200)
commit8bcfeb5a1c2d9adf323ce25b0dbff1c825eb96dd
treeb04b88b6aa487ad67d8740d92740c49b816a38fc
parentcdc63291821ff286c76e12dead74b5021f170ea9
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