queue: Do not hold GST_QUEUE_LOCK while posting ERROR messages
authorThibault Saunier <tsaunier@gnome.org>
Mon, 22 Sep 2014 07:33:04 +0000 (09:33 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Mon, 22 Sep 2014 14:13:44 +0000 (16:13 +0200)
commit38657bff5171e05e09b988306772ef001aa5fd51
treef6411ecad935d1108ca7e33b30933b072059efcf
parentecf479e3d1885c41208ca0df7c7d4b6d3e2d2af7
queue: Do not hold GST_QUEUE_LOCK while posting ERROR messages

This might create deadlocks and we need to avoid holding element
specific lock while posting messages

For example a deadlock will happen if while posting the message,
someone connected on the bus (sync) tries to DOT the pipeline.

https://bugzilla.gnome.org/show_bug.cgi?id=737102
plugins/elements/gstqueue.c