queue: avoid g_cond_signal when we can
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 12 Oct 2010 16:48:10 +0000 (18:48 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 12 Oct 2010 16:48:10 +0000 (18:48 +0200)
commitaa62c60a6c44114f3f6f0900dd2e85f9ac2a81b1
tree152e580d1ae69b48bb7d6dd4ccde0bbde29a4257
parent0dbb0f203e23524f323045eb55c5e8dc4f1c124c
queue: avoid g_cond_signal when we can

Keep track of what cond we are waiting on and only signal when some other thread
is waiting.
plugins/elements/gstqueue.c
plugins/elements/gstqueue.h