multiqueue: Accept STREAM_START after EOS
authorEdward Hervey <edward@centricular.com>
Tue, 15 Sep 2015 16:08:18 +0000 (18:08 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 15 Oct 2015 15:21:40 +0000 (17:21 +0200)
In the same way core now allows STREAM_START to remove the flushing
state from pads, we need to do the same thing in multiqueue

plugins/elements/gstmultiqueue.c

index e328fc5..1d90cda 100644 (file)
@@ -1776,6 +1776,10 @@ gst_multi_queue_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
   type = GST_EVENT_TYPE (event);
 
   switch (type) {
+    case GST_EVENT_STREAM_START:
+      /* Remove EOS flag */
+      sq->is_eos = FALSE;
+      break;
     case GST_EVENT_FLUSH_START:
       GST_DEBUG_OBJECT (mq, "SingleQueue %d : received flush start event",
           sq->id);