mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
b41b87522f
commit
7edbc3fd7d
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue