After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 90471 - [0.6.x/patch] Autoplug functions only available with varargs
[0.6.x/patch] Autoplug functions only available with varargs
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.4.0
Other Linux
: Normal normal
: 0.6.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-08-11 14:24 UTC by tim
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to implement _valist equivalent functions. (3.25 KB, patch)
2003-05-31 17:35 UTC, Brett Kosinski
none Details | Review
patch with docs cleaned up (4.83 KB, patch)
2003-10-05 20:46 UTC, Thomas Vander Stichele
none Details | Review

Description tim 2002-08-11 14:24:24 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.
Comment 1 Christian Fredrik Kalager Schaller 2002-09-13 13:13:17 UTC
Any chance you could provide a patch tim? 
Comment 2 Ronald Bultje 2002-09-16 12:06:19 UTC
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. ;-).
Comment 3 tim 2002-09-16 19:28:30 UTC
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.    
   
Comment 4 Wim Taymans 2002-09-16 19:47:56 UTC
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? 
Comment 5 Brett Kosinski 2003-05-31 17:35:01 UTC
Created attachment 17018 [details] [review]
Patch to implement _valist equivalent functions.
Comment 6 Ronald Bultje 2003-06-18 11:11:25 UTC
Applied to HEAD. Pending for 0.6.x.
Comment 7 David Schleef 2003-06-18 19:04:46 UTC
Before committing to 0.6.x, could you comment on #115052.
Comment 8 Thomas Vander Stichele 2003-08-26 10:52:23 UTC
I read the other bug, not sure what the correct way to resolve this is
now.

Guys, can you comment please ? :)
Comment 9 David Schleef 2003-08-26 16:56:33 UTC
The patch should be applied, but with the documentation block fixed.
Comment 10 Ronald Bultje 2003-08-26 18:39:41 UTC
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.
Comment 11 Thomas Vander Stichele 2003-10-05 20:46:18 UTC
Created attachment 20481 [details] [review]
patch with docs cleaned up
Comment 12 Thomas Vander Stichele 2003-10-05 20:49:06 UTC
commited to 0.6.3.1, closing