omx: Don't broadcast port->port_cond after allocating buffers successfully

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.
This commit is contained in:
Sebastian Dröge 2011-07-07 12:21:31 +02:00
parent 3ac2bfc976
commit 28688414b8

View 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",