From: Sebastian Dröge Date: Fri, 21 Jan 2011 09:27:29 +0000 (+0100) Subject: gstreamer-pbutils-0.10: Use custom ref/unref functions for Gst.EncodingTarget X-Git-Tag: 0.11.5~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=489164f6eddb09bb525ec4c5f02a4e8542a68f12;p=thirdparty%2Fvala.git gstreamer-pbutils-0.10: Use custom ref/unref functions for Gst.EncodingTarget --- diff --git a/vapi/gstreamer-pbutils-0.10.vapi b/vapi/gstreamer-pbutils-0.10.vapi index aafffca9f..b7d03b1ed 100644 --- a/vapi/gstreamer-pbutils-0.10.vapi +++ b/vapi/gstreamer-pbutils-0.10.vapi @@ -101,7 +101,7 @@ namespace Gst { public void set_restriction (Gst.Caps restriction); public void unref (); } - [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + [CCode (ref_function = "gst_encoding_target_ref", unref_function = "gst_encoding_target_unref", cheader_filename = "gst/pbutils/pbutils.h")] public class EncodingTarget : Gst.MiniObject { [CCode (has_construct_function = false)] public EncodingTarget (string name, string category, string description, GLib.List profiles); @@ -113,8 +113,10 @@ namespace Gst { public unowned GLib.List get_profiles (); public static Gst.EncodingTarget load (string name, string category) throws GLib.Error; public static Gst.EncodingTarget load_from_file (string filepath) throws GLib.Error; + public unowned Gst.EncodingTarget @ref (); public bool save () throws GLib.Error; public bool save_to_file (string filepath) throws GLib.Error; + public void unref (); } [CCode (cheader_filename = "gst/pbutils/pbutils.h")] public class EncodingVideoProfile : Gst.EncodingProfile { diff --git a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10-custom.vala b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10-custom.vala index cd0cf6e15..ac71c18a5 100644 --- a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10-custom.vala +++ b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10-custom.vala @@ -26,4 +26,9 @@ namespace Gst { public unowned EncodingProfile @ref (); public void unref (); } + [CCode (ref_function = "gst_encoding_target_ref", unref_function = "gst_encoding_target_unref")] + public class EncodingTarget : Gst.MiniObject { + public unowned EncodingTarget @ref (); + public void unref (); + } }