From e413b8403cacec06c593e552974421d660a669b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 10 Aug 2011 09:23:10 +0200 Subject: [PATCH] omx: Reset pending reconfigure output ports when changing the state from Executing to any lower state --- omx/gstomx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index 8513a43156..c464fb047a 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;