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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/666>
This commit is contained in:
Thibault Saunier 2020-05-22 00:35:03 -04:00
parent b41b87522f
commit 7edbc3fd7d

View file

@ -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