mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
rtsp-media-factory: make ::get_element overridable by GI bindings
The way to annotate vfuncs with GI seems to be to create an invoker (GI term) for them and to annotate the invoker. Add gst_rtsp_media_factory_get_element() as the invoker for ::get_element(), making it overridable by GI generated bindings.
This commit is contained in:
parent
3a49b8e783
commit
8f507e4512
2 changed files with 17 additions and 0 deletions
|
@ -877,3 +877,18 @@ default_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
|
|||
g_free (mc);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_rtsp_media_factory_get_element:
|
||||
* @factory: a #GstRTSPMediaFactory
|
||||
* @url: the url used
|
||||
*
|
||||
* Returns: (transfer floating) a new #GstElement.
|
||||
*/
|
||||
GstElement *
|
||||
gst_rtsp_media_factory_get_element (GstRTSPMediaFactory * factory,
|
||||
const GstRTSPUrl * url)
|
||||
{
|
||||
GstRTSPMediaFactoryClass *klass = GST_RTSP_MEDIA_FACTORY_GET_CLASS (factory);
|
||||
return klass->get_element (factory, url);
|
||||
}
|
||||
|
|
|
@ -151,6 +151,8 @@ GstRTSPMedia * gst_rtsp_media_factory_construct (GstRTSPMediaFactory *
|
|||
void gst_rtsp_media_factory_collect_streams (GstRTSPMediaFactory *factory,
|
||||
const GstRTSPUrl *url,
|
||||
GstRTSPMedia *media);
|
||||
|
||||
GstElement * gst_rtsp_media_factory_get_element (GstRTSPMediaFactory *factory, const GstRTSPUrl *url);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue