omx: Flushing is also allowed in Paused state

This commit is contained in:
Sebastian Dröge 2013-02-12 11:37:38 +01:00
parent 39672e70c4
commit 58a093bc0c

View file

@ -1304,8 +1304,8 @@ gst_omx_port_set_flushing (GstOMXPort * port, gboolean flush)
goto done;
}
if (comp->state != OMX_StateIdle && comp->state != OMX_StateExecuting) {
if (comp->state != OMX_StateIdle && comp->state != OMX_StateExecuting
&& comp->state != OMX_StatePause) {
GST_DEBUG_OBJECT (comp->parent, "Component is in wrong state: %d",
comp->state);
err = OMX_ErrorUndefined;