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:
Alessandro Decina 2012-10-12 06:11:36 +02:00
parent 3a49b8e783
commit 8f507e4512
2 changed files with 17 additions and 0 deletions

View file

@ -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);
}

View file

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