From 7edbc3fd7dba319338278187f79213b12d3500b9 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 22 May 2020 00:35:03 -0400 Subject: [PATCH] uridecodebin3: Let decodebin do its stream selection if no one answers If no one answers our `select-stream` signal, uridecodebin3 should behave the same way as `decodebin3` and let decodebin do its own stream selection. Part-of: --- gst/playback/gsturidecodebin3.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gst/playback/gsturidecodebin3.c b/gst/playback/gsturidecodebin3.c index 0228b26353..fddce9ac16 100644 --- a/gst/playback/gsturidecodebin3.c +++ b/gst/playback/gsturidecodebin3.c @@ -237,6 +237,15 @@ struct _GstURIDecodeBin3 gboolean posted_about_to_finish; }; +static gint +gst_uridecodebin3_select_stream (GstURIDecodeBin3 * dbin, + GstStreamCollection * collection, GstStream * stream) +{ + GST_LOG_OBJECT (dbin, "default select-stream, returning -1"); + + return -1; +} + struct _GstURIDecodeBin3Class { GstBinClass parent_class; @@ -521,6 +530,7 @@ gst_uri_decode_bin3_class_init (GstURIDecodeBin3Class * klass) gstelement_class->change_state = gst_uri_decode_bin3_change_state; + klass->select_stream = gst_uridecodebin3_select_stream; } static GstPadProbeReturn