omx: Reset pending reconfigure output ports when changing the state from Executing...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 10 Aug 2011 07:23:10 +0000 (09:23 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 10 Aug 2011 07:23:10 +0000 (09:23 +0200)
omx/gstomx.c

index 8513a43..c464fb0 100644 (file)
@@ -506,7 +506,7 @@ gst_omx_component_set_state (GstOMXComponent * comp, OMX_STATETYPE state)
   err = OMX_SendCommand (comp->handle, OMX_CommandStateSet, state, NULL);
 
   /* Reset some things */
-  if (old_state == OMX_StateExecuting && state == OMX_StateIdle) {
+  if (old_state == OMX_StateExecuting && state < old_state) {
     g_atomic_int_set (&comp->have_pending_reconfigure_outports, 0);
     g_list_free (comp->pending_reconfigure_outports);
     comp->pending_reconfigure_outports = NULL;