streamsplitter: Forward STREAM_START to all branchs
authorThibault Saunier <tsaunier@igalia.com>
Sat, 4 Jul 2020 16:32:26 +0000 (12:32 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 22 Jul 2020 16:01:25 +0000 (16:01 +0000)
Otherwise the branch that get selected later won't receive it ever.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/751>

gst/encoding/gststreamsplitter.c

index 4d22698..71cb0ec 100644 (file)
@@ -183,6 +183,9 @@ gst_stream_splitter_sink_event (GstPad * pad, GstObject * parent,
       GST_EVENT_TYPE_NAME (event));
 
   switch (GST_EVENT_TYPE (event)) {
+    case GST_EVENT_STREAM_START:
+      toall = TRUE;
+      break;
     case GST_EVENT_CAPS:
     {
       GstCaps *caps;