From: Sebastian Dröge Date: Wed, 23 Jun 2010 20:35:57 +0000 (+0200) Subject: gstreamer-0.10: Fix GstParse bindings X-Git-Tag: 0.9.3~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b333a84fb0a1129320e1b7efcd1851205f06de9;p=thirdparty%2Fvala.git gstreamer-0.10: Fix GstParse bindings Some ownership, return type and nullable fixes --- diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi index 0234e6276..d28a7641e 100644 --- a/vapi/gstreamer-0.10.vapi +++ b/vapi/gstreamer-0.10.vapi @@ -946,7 +946,8 @@ namespace Gst { public class ParseContext { [CCode (has_construct_function = false)] public ParseContext (); - public unowned string get_missing_elements (); + [CCode (array_length = false, array_null_terminated = true)] + public string[] get_missing_elements (); } [CCode (cheader_filename = "gst/gst.h")] public class Pipeline : Gst.Bin, Gst.ChildProxy { @@ -2675,17 +2676,17 @@ namespace Gst { [CCode (cheader_filename = "gst/gst.h")] public static Gst.Element? parse_bin_from_description (string bin_description, bool ghost_unlinked_pads) throws GLib.Error; [CCode (cheader_filename = "gst/gst.h")] - public static unowned Gst.Element parse_bin_from_description_full (string bin_description, bool ghost_unlinked_pads, Gst.ParseContext context, Gst.ParseFlags flags) throws GLib.Error; + public static Gst.Element? parse_bin_from_description_full (string bin_description, bool ghost_unlinked_pads, Gst.ParseContext? context, Gst.ParseFlags flags) throws GLib.Error; [CCode (cheader_filename = "gst/gst.h")] public static GLib.Quark parse_error_quark (); [CCode (cheader_filename = "gst/gst.h")] public static Gst.Element? parse_launch (string pipeline_description) throws GLib.Error; [CCode (cheader_filename = "gst/gst.h")] - public static unowned Gst.Element parse_launch_full (string pipeline_description, Gst.ParseContext context, Gst.ParseFlags flags) throws GLib.Error; + public static Gst.Element? parse_launch_full (string pipeline_description, Gst.ParseContext? context, Gst.ParseFlags flags) throws GLib.Error; [CCode (cheader_filename = "gst/gst.h")] public static Gst.Element? parse_launchv ([CCode (array_length = false)] string[] argv) throws GLib.Error; [CCode (cheader_filename = "gst/gst.h")] - public static unowned Gst.Element parse_launchv_full (string argv, Gst.ParseContext context, Gst.ParseFlags flags) throws GLib.Error; + public static Gst.Element? parse_launchv_full ([CCode (array_length = false)] string[] argv, Gst.ParseContext? context, Gst.ParseFlags flags) throws GLib.Error; [CCode (cheader_filename = "gst/gst.h")] public static void print_element_args (GLib.StringBuilder buf, int indent, Gst.Element element); [CCode (cheader_filename = "gst/gst.h")] diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata index 27bb7e37d..4ffbf81ac 100644 --- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata +++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata @@ -417,10 +417,18 @@ gst_ghost_pad_set_target.newtarget nullable="1" gst_ghost_pad_get_target transfer_ownership="1" nullable="1" gst_ghost_pad_construct hidden="1" GstPadTemplate::pad_created has_emitter="1" +gst_parse_context_get_missing_elements is_array="1" array_null_terminated="1" transfer_ownership="1" +gst_parse_bin_from_description transfer_ownership="1" nullable="1" +gst_parse_bin_from_description_full transfer_ownership="1" nullable="1" +gst_parse_bin_from_description_full.context nullable="1" gst_parse_launchv.argv is_array="1" array_null_terminated="1" gst_parse_launchv transfer_ownership="1" nullable="1" gst_parse_launch transfer_ownership="1" nullable="1" -gst_parse_bin_from_description transfer_ownership="1" nullable="1" +gst_parse_launch_full transfer_ownership="1" nullable="1" +gst_parse_launch_full.context nullable="1" +gst_parse_launchv_full.argv is_array="1" array_null_terminated="1" +gst_parse_launchv_full.context nullable="1" +gst_parse_launchv_full transfer_ownership="1" nullable="1" GstParamSpecFraction base_class="GParamSpec" GstParamSpecFraction.parent_instance hidden="1" GstParamSpecMiniObject base_class="GParamSpec"