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 11:34:02 +0000 (14:34 +0300)
plugins/elements/gstmultiqueue.c

index 1a9973731581124008bc68870b5142d6bce64680..9f58806f5ef2c1e7e2a3ecaaa9c7cc5512869d04 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."),