From: Sebastian Dröge Date: Thu, 7 Jul 2011 10:21:31 +0000 (+0200) Subject: omx: Don't broadcast port->port_cond after allocating buffers successfully X-Git-Tag: 1.0.0~461 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28688414b88ff52ce4bb7cc94973b2ba68a882e6;p=platform%2Fupstream%2Fgst-omx.git 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. --- diff --git a/omx/gstomx.c b/omx/gstomx.c index cba1c2a..f73d635 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -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",