videodecoder: Also use the object lock to protect the output_state
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Sat, 29 Sep 2012 00:07:43 +0000 (20:07 -0400)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 27 Nov 2013 14:42:30 +0000 (15:42 +0100)
commit36c375324582c3dc3b9ec08673373c9d788e25bf
tree3f18f29ab9b79d72147fbe0e5544e21c85477cd7
parent518c93d1df7ff89609f35f0221fefe1feb147306
videodecoder: Also use the object lock to protect the output_state

Hold both the stream and the object lock to modify the output_state,
this way it can be safely modified while hold either one or the other.

Also, only hold the object lock in the query

https://bugzilla.gnome.org/show_bug.cgi?id=684832
gst-libs/gst/video/gstvideodecoder.c