From 825d435d7d289f499c30f00fa36e0d9969772969 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 8 Aug 2011 12:12:58 +0200 Subject: [PATCH] omx: Only prevent setting a higher state if the component is in an error state --- omx/gstomx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index 603c552..375c2ea 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -471,7 +471,7 @@ gst_omx_component_set_state (GstOMXComponent * comp, OMX_STATETYPE state) old_state = comp->state; GST_DEBUG_OBJECT (comp->parent, "Setting state from %d to %d", old_state, state); - if ((err = comp->last_error) != OMX_ErrorNone) { + if ((err = comp->last_error) != OMX_ErrorNone && state > old_state) { GST_ERROR_OBJECT (comp->parent, "Component in error state: %s (0x%08x)", gst_omx_error_to_string (err), err); goto done; -- 2.7.4