mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
I'm too lazy to comment this
Original commit message from CVS: Add _valist style autoplug functions (#90471), thanks to Brett Kosinski <brettk@frodo.dyn.gno.org>
This commit is contained in:
parent
e10992295e
commit
1899fd27ba
2 changed files with 56 additions and 3 deletions
|
@ -138,6 +138,31 @@ gst_autoplug_to_caps (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps
|
|||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_autoplug_to_caps:
|
||||
* @autoplug: The autoplugger perform the autoplugging
|
||||
* @srccaps: The source cpabilities
|
||||
* @sinkcaps: The target capabilities
|
||||
* @va_list: more target capabilities
|
||||
*
|
||||
* Perform the autoplugging procedure on the given autoplugger.
|
||||
* The src caps will be connected to the sink caps.
|
||||
*
|
||||
* Returns: A new Element that connects the src caps to the sink caps.
|
||||
*/
|
||||
GstElement*
|
||||
gst_autoplug_to_caps_valist (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, va_list args)
|
||||
{
|
||||
GstAutoplugClass *oclass;
|
||||
GstElement *element = NULL;
|
||||
|
||||
oclass = GST_AUTOPLUG_CLASS (G_OBJECT_GET_CLASS(autoplug));
|
||||
if (oclass->autoplug_to_caps)
|
||||
element = (oclass->autoplug_to_caps) (autoplug, srccaps, sinkcaps, args);
|
||||
|
||||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_autoplug_to_renderers:
|
||||
* @autoplug: The autoplugger perform the autoplugging
|
||||
|
@ -168,6 +193,31 @@ gst_autoplug_to_renderers (GstAutoplug *autoplug, GstCaps *srccaps, GstElement *
|
|||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_autoplug_to_renderers:
|
||||
* @autoplug: The autoplugger perform the autoplugging
|
||||
* @srccaps: The source cpabilities
|
||||
* @target: The target element
|
||||
* @va_list: more target elements
|
||||
*
|
||||
* Perform the autoplugging procedure on the given autoplugger.
|
||||
* The src caps will be connected to the target elements.
|
||||
*
|
||||
* Returns: A new Element that connects the src caps to the target elements.
|
||||
*/
|
||||
GstElement*
|
||||
gst_autoplug_to_renderers_valist (GstAutoplug *autoplug, GstCaps *srccaps, GstElement *target, va_list args)
|
||||
{
|
||||
GstAutoplugClass *oclass;
|
||||
GstElement *element = NULL;
|
||||
|
||||
oclass = GST_AUTOPLUG_CLASS (G_OBJECT_GET_CLASS(autoplug));
|
||||
if (oclass->autoplug_to_renderers)
|
||||
element = (oclass->autoplug_to_renderers) (autoplug, srccaps, target, args);
|
||||
|
||||
return element;
|
||||
}
|
||||
|
||||
static void gst_autoplug_factory_class_init (GstAutoplugFactoryClass *klass);
|
||||
static void gst_autoplug_factory_init (GstAutoplugFactory *factory);
|
||||
|
||||
|
|
|
@ -72,9 +72,12 @@ GType gst_autoplug_get_type (void);
|
|||
|
||||
void gst_autoplug_signal_new_object (GstAutoplug *autoplug, GstObject *object);
|
||||
|
||||
GstElement* gst_autoplug_to_caps (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, ...);
|
||||
GstElement* gst_autoplug_to_renderers (GstAutoplug *autoplug, GstCaps *srccaps,
|
||||
GstElement *target, ...);
|
||||
GstElement* gst_autoplug_to_caps (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, ...);
|
||||
GstElement* gst_autoplug_to_caps_valist (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, va_list args);
|
||||
GstElement* gst_autoplug_to_renderers (GstAutoplug *autoplug, GstCaps *srccaps,
|
||||
GstElement *target, ...);
|
||||
GstElement* gst_autoplug_to_renderers_valist (GstAutoplug *autoplug, GstCaps *srccaps,
|
||||
GstElement *target, va_list args);
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue