GNOME Bugzilla – Bug 567027
Add GType for GstRTSPUrl for bindings
Last modified: 2009-01-08 17:18:24 UTC
The GstRTSPUrl struct needs to have a boxed GType so that bindings can wrap it.
Created attachment 126033 [details] [review] Patch to make a boxed GType for GstRTSPUrl
Created attachment 126038 [details] [review] improved patch Improved patch * use GOnce * update docs and defs * Add a type define
Comment on attachment 126038 [details] [review] improved patch >+ /* work around thread-safety issue with class creation in GLib */ >+ g_type_class_ref (*id); I think boxed types are unclassed and this will lead to a GObject warning. Have you tried it?
Created attachment 126040 [details] [review] improved patch without the _class_ref() and tested.
* docs/libs/gst-plugins-base-libs-sections.txt: * gst-libs/gst/rtsp/gstrtspurl.c: (register_rtsp_url_type), (gst_rtsp_url_get_type), (gst_rtsp_url_copy): * gst-libs/gst/rtsp/gstrtspurl.h: * win32/common/libgstrtsp.def: Add GType for GstRTSPUrl and expose a copy function because we can. API: gst_rtsp_url_copy() Fixes #567027.