decodebin3: change stream selection message owner
authorStéphane Cerveau <scerveau@collabora.com>
Tue, 19 Jan 2021 14:56:18 +0000 (15:56 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 19 Feb 2021 08:01:57 +0000 (08:01 +0000)
In order to select the streams on GST_MESSAGE_STREAM_COLLECTION,
the app needs to send the select-streams event
to the decodebin and not to the parsebin.

The message should be always owned by the decodebin.

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

gst/playback/gstdecodebin3.c

index dc7e217..3cf5243 100644 (file)
@@ -1500,7 +1500,7 @@ gst_decodebin3_handle_message (GstBin * bin, GstMessage * message)
       }
 
       SELECTION_LOCK (dbin);
-      if (dbin->collection && collection != dbin->collection) {
+      if (dbin->collection) {
         /* Replace collection message, we most likely aggregated it */
         GstMessage *new_msg;
         new_msg =