multiqueue: Wake up all not-linked streams when a stream switches from linked to...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 29 Mar 2012 12:45:41 +0000 (14:45 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 29 Mar 2012 12:49:53 +0000 (14:49 +0200)
commit9441e711df7a40135efd28ea7f9d1b50bfc59ef1
treefc050f93a4a538c065cf0c36229c0aa44c25c577
parent17e691421f77015f56cabc7169e7580ae3605ce0
multiqueue: Wake up all not-linked streams when a stream switches from linked to not-linked

We reset all the waiting streams, let them push another buffer to
see if they're now active again. This allows faster switching
between streams and prevents deadlocks if downstream does any
waiting too.

Also improve locking a bit, srcresult must be protected by the
multiqueue lock too because it's used/set from random threads.
plugins/elements/gstmultiqueue.c