mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
omx: Only prevent setting a higher state if the component is in an error state
This commit is contained in:
parent
5319d33ca1
commit
825d435d7d
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ gst_omx_component_set_state (GstOMXComponent * comp, OMX_STATETYPE state)
|
||||||
old_state = comp->state;
|
old_state = comp->state;
|
||||||
GST_DEBUG_OBJECT (comp->parent, "Setting state from %d to %d", old_state,
|
GST_DEBUG_OBJECT (comp->parent, "Setting state from %d to %d", old_state,
|
||||||
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_ERROR_OBJECT (comp->parent, "Component in error state: %s (0x%08x)",
|
||||||
gst_omx_error_to_string (err), err);
|
gst_omx_error_to_string (err), err);
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue