omx: Don't broadcast port->port_cond after allocating buffers successfully
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 7 Jul 2011 10:21:31 +0000 (12:21 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 9 Jul 2011 09:06:06 +0000 (11:06 +0200)
Allocating buffers must happen while no thread is waiting for the
cond and especially must happen from the thread that would acquire
buffers from the port.

omx/gstomx.c

index cba1c2a..f73d635 100644 (file)
@@ -984,7 +984,6 @@ gst_omx_port_allocate_buffers_unlocked (GstOMXPort * port)
     /* In the beginning all buffers are not owned by the component */
     g_queue_push_tail (port->pending_buffers, buf);
   }
-  g_cond_broadcast (port->port_cond);
 
 done:
   GST_DEBUG_OBJECT (comp->parent, "Allocated buffers for port %u: %d",