videodecoder: don't take STREAM_LOCK on upstream events
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 24 Sep 2012 09:16:09 +0000 (10:16 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 24 Sep 2012 09:56:35 +0000 (10:56 +0100)
commit62c111f1e481f558e9d65a8eface9877178d3051
tree947618ebaf2eb1927d70c5a0439bf5523a6c486e
parent386206e627b45fb7c6d64dec188ddf67ad80c1da
videodecoder: don't take STREAM_LOCK on upstream events

Don't try to take STREAM_LOCK on upstream events such as QOS.
Protect qos-related variables with object lock instead. Fixes
possible deadlock when shutting down in certain situations.

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