omx: Flushing is also allowed in Paused state
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 Feb 2013 10:37:38 +0000 (11:37 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 Feb 2013 10:37:38 +0000 (11:37 +0100)
omx/gstomx.c

index 07178dd..4c545ac 100644 (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;