decodebin3: change stream selection message owner

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>
This commit is contained in:
Stéphane Cerveau 2021-01-19 15:56:18 +01:00 committed by GStreamer Merge Bot
parent 2527c8f9f8
commit 8bf7816790

View 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 =