From: Sebastian Dröge Date: Wed, 10 Aug 2011 07:23:10 +0000 (+0200) Subject: omx: Reset pending reconfigure output ports when changing the state from Executing... X-Git-Tag: 1.19.3~501^2~945 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e413b8403cacec06c593e552974421d660a669b0;p=platform%2Fupstream%2Fgstreamer.git omx: Reset pending reconfigure output ports when changing the state from Executing to any lower state --- diff --git a/omx/gstomx.c b/omx/gstomx.c index 8513a43..c464fb0 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -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;