multiqueue: only block serialized query when it's safe
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 16 Jul 2013 09:36:50 +0000 (11:36 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 16 Jul 2013 09:36:50 +0000 (11:36 +0200)
commit0dc232e1140be953e920388c54dd4cfa0d7637e0
tree48c7ce662e20268353949e80ee5cae331ea71fbf
parentc279bdb663de532be58b31970b26ff515ff4f098
multiqueue: only block serialized query when it's safe

We must be certain that we don't cause a deadlock when blocking the serialized
queries. One such deadlock can happen when we are buffering and downstream is
blocked in preroll and a serialized query arrives. Downstream will not unblock
(and allow our query to execute) until we complete buffering and buffering will
not complete until we can answer the query..

https://bugzilla.gnome.org/show_bug.cgi?id=702840
plugins/elements/gstmultiqueue.c