GNOME Bugzilla – Bug 90471
[0.6.x/patch] Autoplug functions only available with varargs
Last modified: 2004-12-22 21:47:04 UTC
The functions gst_autoplug_to_caps() and gst_autoplug_to_renderers() exist only in vararg versions. Thus it is not possible to access their functionality from wrappers for non-C languages.
Any chance you could provide a patch tim?
Please describe what kind of function you would need and we'll implement it... gst_autoplug_to_caps(GstAutoPlug *autoplug, GstCaps *src_caps, va_list sink_capses); ? or gst_autoplug_to_caps(GstAutoPlug *autoplug, GstCaps *src_caps, GstCaps *sink_capses[]); ? (NULL-terminated list) or a GList* as third argument? va_list is easiest to implement in gstreamer itself, but I'm not sure how hard it is to implement va_list thingies in non-C. ;-).
I dont know how to create a va_list at runtime, if it is possible with va_list it is fine. Arrays or GList are ok as well, of course. Important is only that it is possible to create the list at runtime.
Can one create a wrapper for g_object_set or g_object_set_valist? or do the wrappers only use the g_object_set_property API without varargs?
Created attachment 17018 [details] [review] Patch to implement _valist equivalent functions.
Applied to HEAD. Pending for 0.6.x.
Before committing to 0.6.x, could you comment on #115052.
I read the other bug, not sure what the correct way to resolve this is now. Guys, can you comment please ? :)
The patch should be applied, but with the documentation block fixed.
I'm in for accepting this patch. If possible, all functions should be "glib/gtk-compatible" in 0.8.0. This patch is definately needed for that. Dave's last comment in the other bug is correct.
Created attachment 20481 [details] [review] patch with docs cleaned up
commited to 0.6.3.1, closing