omx: Add workaround for QCOM 7x30 race condition
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 29 Jul 2011 11:56:59 +0000 (13:56 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 29 Jul 2011 11:56:59 +0000 (13:56 +0200)
omx/gstomx.c

index 33bf7e3..1e78a04 100644 (file)
@@ -1124,6 +1124,9 @@ gst_omx_port_set_flushing (GstOMXPort * port, gboolean flush)
     if (port->port_def.eDir == OMX_DirOutput && port->buffers) {
       GstOMXBuffer *buf;
 
+      /* FIXME: Workaround for QCOM 7x30 race condition */
+      g_usleep (G_USEC_PER_SEC / 10);
+
       /* Enqueue all buffers for the component to fill */
       while ((buf = g_queue_pop_head (port->pending_buffers))) {
         g_assert (!buf->used);