multiqueue: Only handle flow returns < EOS as errors, not e.g. flushing
authorSebastian Dröge <sebastian@centricular.com>
Wed, 13 Aug 2014 10:01:23 +0000 (13:01 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 13 Aug 2014 10:01:23 +0000 (13:01 +0300)
plugins/elements/gstmultiqueue.c

index 1a99737..9f58806 100644 (file)
@@ -1470,7 +1470,7 @@ out_flushing:
      * has returned an error flow return. After EOS there
      * will be no further buffer which could propagate the
      * error upstream */
-    if (sq->is_eos) {
+    if (sq->is_eos && sq->srcresult < GST_FLOW_EOS) {
       GST_MULTI_QUEUE_MUTEX_UNLOCK (mq);
       GST_ELEMENT_ERROR (mq, STREAM, FAILED,
           ("Internal data stream error."),