GNOME Bugzilla – Bug 539817
More gstreamer binding fixes
Last modified: 2009-03-17 14:31:55 UTC
Some more minor gstreamer binding fixes.
Created attachment 113291 [details] [review] More gstreamer binding fixes
2008-06-25 Jürg Billeter <j@bitron.ch> * vapi/packages/gstreamer-0.10/: More gst_tag_list_* binding fixes, patch by Zeeshan Ali Khattak, fixes bug 539817 * vapi/gstreamer-0.10.vapi: regenerated Fixed in r1646.
Created attachment 124867 [details] [review] Corrections for gst_element_make_from_uri().
Created attachment 124868 [details] [review] Regenerate the gstreamer-0.10 vapi.
Re-openning the bug for the newly added patches.
2008-12-17 Jürg Billeter <j@bitron.ch> * vapi/packages/gstreamer-0.10/: Fix gst_element_make_from_uri binding, patch by Zeeshan Ali Khattak, fixes bug 539817 * vapi/gstreamer-0.10.vapi: regenerated Fixed in r2203.
Created attachment 125415 [details] [review] gst_element_get_static_pad returns a ref
Created attachment 125416 [details] [review] Correct binding for gst_element_get_static_pad().
Created attachment 125457 [details] [review] Fixes to Gst.Registry bindings. And some more minor fixes.
2008-12-30 Jürg Billeter <j@bitron.ch> * vapi/packages/gstreamer-0.10/: Fix gst_element_get_static_pad and gst_regitry_* bindings, patch by Zeeshan Ali Khattak, fixes bug 539817 * vapi/gstreamer-0.10.vapi: regenerated Fixed in r2244.
Created attachment 125672 [details] [review] Minor fixes to gst_parse*() bindings.
2009-01-03 Jürg Billeter <j@bitron.ch> * vapi/packages/gstreamer-0.10/: Fix gst_parse_* bindings, patch by Zeeshan Ali Khattak, fixes bug 539817 * vapi/gstreamer-0.10.vapi: regenerated Fixed in r2259.
in gstreamer.vapi public class XML : Gst.Object { ... public XML (); [NoWrapper] ... public bool parse_file (uchar[] fname, uchar[] root); should be public bool parse_file (uchar[] fname, uchar[]? root); because root can be NULL, as said in the documentation.
Created attachment 127922 [details] [review] fixes parameter in public bool parse_file (uchar[] fname, uchar[] root);
Created attachment 127984 [details] [review] fixes some method declarations of Gst.XML methods there are several Gst.XML methods declared in gstreamer-0.10.vapi like public bool parse_file (uchar[] fname, uchar[] root); and because of such declaration one can not call it with literal string as parameter, like that: parse_file ("filename", null); valac comlains that it can not convert string to uchar if one passes uchar[] parameter to this function valac adds length of the string to the function call and this time gcc complains about additional parameters. so declaration should be changed to public bool parse_file (string fname, string? root); //second parameter can be null as it said in documentation
Created attachment 127985 [details] [review] fixes some method declarations of Gst.XML methods there are several Gst.XML methods declared in gstreamer-0.10.vapi like public bool parse_file (uchar[] fname, uchar[] root); and because of such declaration one can not call it with literal string as parameter, like that: parse_file ("filename", null); valac comlains that it can not convert string to uchar if one passes uchar[] parameter to this function valac adds length of the string to the function call and this time gcc complains about additional parameters. so declaration should be changed to public bool parse_file (string fname, string? root); //second parameter can be null as it said in documentation
Thanks for the patch. gstreamer-0.10.vapi is a generated file, though, as mentioned on the first line of the file. We'll need to update the .metadata file and regenerate the vapi.
Created attachment 130508 [details] [review] message arg of gst_element_post_message takes ownership.
Created attachment 130512 [details] [review] name arg of gst_ghost_pad_new is nullable.
Created attachment 130513 [details] [review] caps arg of gst_element_get_compatible_pad is nullable.
I just `svn dcommit`ed my last weeks changes' to rygel, forgetting that it'll break the build without the last three patches I've provided. So please commit them soon'ish.
commit 02f853f2900d30f97a95c8df64e6319d5f5f284b Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org> Date: Thu Mar 12 15:23:53 2009 +0200 gstreamer-0.10: Fix gst_element_get_compatible_pad binding Caps parameter of gst_element_get_compatible_pad is nullable. commit 95fb6a50d8b6828a62edcb7c323323e7fc21041c Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org> Date: Thu Mar 12 14:56:54 2009 +0200 gstreamer-0.10: Fix gst_ghost_pad_new binding Name parameter of gst_ghost_pad_new is nullable. commit 408176dee0bc5e0074c5a200f40107098cf7dd32 Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org> Date: Thu Mar 12 14:32:24 2009 +0200 gstreamer-0.10: Fix gst_element_post_message binding Message parameter of gst_element_post_message takes ownership.