[vala] gstreamer-pbutils-0.10: Use custom ref/unref functions for Gst.EncodingTarget



commit 489164f6eddb09bb525ec4c5f02a4e8542a68f12
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Fri Jan 21 10:27:29 2011 +0100

    gstreamer-pbutils-0.10: Use custom ref/unref functions for Gst.EncodingTarget

 vapi/gstreamer-pbutils-0.10.vapi                   |    4 +++-
 .../gstreamer-pbutils-0.10-custom.vala             |    5 +++++
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gstreamer-pbutils-0.10.vapi b/vapi/gstreamer-pbutils-0.10.vapi
index aafffca..b7d03b1 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<Gst.EncodingProfile> profiles);
@@ -113,8 +113,10 @@ namespace Gst {
 		public unowned GLib.List<Gst.EncodingProfile> 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 cd0cf6e..ac71c18 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 ();
+	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]