queue/queue2: Protect against spurious condition variable wakeups
authorSebastian Dröge <sebastian@centricular.com>
Tue, 13 Dec 2016 18:51:17 +0000 (20:51 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 13 Dec 2016 19:03:54 +0000 (21:03 +0200)
commit3fab00b46aad44e0375988fd61e13e900fa114a4
treec54e99f262f029a23b45fb5564a8fb7f749ae8cc
parent33c239828bd0563114fddb4fece75f95a986d41e
queue/queue2: Protect against spurious condition variable wakeups

Make sure that we only wake up when we have to flush, or when this
specific query was handled.

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