mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
uridecodebin: Add default handler for autoplug-select
uridecodebin proxies this signal and only the first signal handler will ever be called from decodebin2, which is uridecodebin's proxy signal handler.
This commit is contained in:
parent
91122e4efc
commit
09750a0132
1 changed files with 13 additions and 1 deletions
|
@ -124,7 +124,7 @@ struct _GstURIDecodeBinClass
|
|||
GstCaps * caps, GValueArray * factories);
|
||||
/* signal fired to select from the proposed list of factories */
|
||||
GstAutoplugSelectResult (*autoplug_select) (GstElement * element,
|
||||
GstPad * pad, GstCaps * caps, GValueArray * factories);
|
||||
GstPad * pad, GstCaps * caps, GstElementFactory * factory);
|
||||
|
||||
/* emited when all data is decoded */
|
||||
void (*drained) (GstElement * element);
|
||||
|
@ -336,6 +336,16 @@ gst_uri_decode_bin_autoplug_sort (GstElement * element, GstPad * pad,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static GstAutoplugSelectResult
|
||||
gst_uri_decode_bin_autoplug_select (GstElement * element, GstPad * pad,
|
||||
GstCaps * caps, GstElementFactory * factory)
|
||||
{
|
||||
GST_DEBUG_OBJECT (element, "default autoplug-select returns TRY");
|
||||
|
||||
/* Try factory. */
|
||||
return GST_AUTOPLUG_SELECT_TRY;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
||||
{
|
||||
|
@ -619,6 +629,8 @@ gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
|||
klass->autoplug_factories =
|
||||
GST_DEBUG_FUNCPTR (gst_uri_decode_bin_autoplug_factories);
|
||||
klass->autoplug_sort = GST_DEBUG_FUNCPTR (gst_uri_decode_bin_autoplug_sort);
|
||||
klass->autoplug_select =
|
||||
GST_DEBUG_FUNCPTR (gst_uri_decode_bin_autoplug_select);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue