port->flushing = flush;
if (flush) {
+ GTimeVal abstimeout, *timeval;
+ gboolean signalled;
+ OMX_ERRORTYPE last_error;
+
g_cond_broadcast (port->port_cond);
/* We also need to signal the state cond because
g_mutex_lock (comp->state_lock);
g_cond_broadcast (comp->state_cond);
g_mutex_unlock (comp->state_lock);
- }
-
- if (flush) {
- GTimeVal abstimeout, *timeval;
- gboolean signalled;
- OMX_ERRORTYPE last_error;
port->flushed = FALSE;
err = OMX_SendCommand (comp->handle, OMX_CommandFlush, port->index, NULL);