[vala] gstreamer-0.10: Add returns_floating_reference to ElementFactory methods
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gstreamer-0.10: Add returns_floating_reference to ElementFactory methods
- Date: Fri, 4 Nov 2011 19:39:37 +0000 (UTC)
commit 77c97a39ecf3c51fec9db742870b94423f965c07
Author: Fabian Deutsch <fabian deutsch gmx de>
Date: Fri Nov 4 10:11:11 2011 +0100
gstreamer-0.10: Add returns_floating_reference to ElementFactory methods
Fixes bug 663145.
vapi/gstreamer-0.10.vapi | 2 ++
.../gstreamer-0.10/gstreamer-0.10-custom.vala | 7 +++++++
.../gstreamer-0.10/gstreamer-0.10.metadata | 6 ++----
3 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index 50fc769..fed7e71 100644
--- a/vapi/gstreamer-0.10.vapi
+++ b/vapi/gstreamer-0.10.vapi
@@ -512,6 +512,7 @@ namespace Gst {
public bool can_src_all_caps (Gst.Caps caps);
public bool can_src_any_caps (Gst.Caps caps);
public bool can_src_caps (Gst.Caps caps);
+ [CCode (returns_floating_reference = true)]
public Gst.Element? create (string? name);
public static Gst.ElementFactory? find (string name);
public unowned string get_author ();
@@ -530,6 +531,7 @@ namespace Gst {
public static unowned GLib.List list_filter (GLib.List list, Gst.Caps caps, Gst.PadDirection direction, bool subsetonly);
public static unowned GLib.List list_get_elements (Gst.ElementFactoryListType type, Gst.Rank minrank);
public bool list_is_type (Gst.ElementFactoryListType type);
+ [CCode (returns_floating_reference = true)]
public static Gst.Element? make (string factoryname, string? name);
}
[CCode (cheader_filename = "gst/gst.h")]
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
index 9da5563..9f0f449 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -219,6 +219,13 @@ namespace Gst {
public State target_state;
}
+ public class ElementFactory {
+ [CCode (returns_floating_reference = true)]
+ public Gst.Element? create (string? name);
+ [CCode (returns_floating_reference = true)]
+ public static Gst.Element? make (string factoryname, string? name);
+ }
+
[CCode (cheader_filename = "gst/gst.h")]
public class Pad {
[CCode (cname = "gst_pad_add_buffer_probe_full")]
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
index 13bd561..ebd2f9a 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
@@ -165,10 +165,8 @@ gst_element_message_full.text transfer_ownership="1" nullable="1"
gst_element_message_full.debug transfer_ownership="1" nullable="1"
GstElementDetails is_value_type="1"
GstElementFactory.* hidden="1"
-gst_element_factory_make transfer_ownership="1" nullable="1"
-gst_element_factory_make.name nullable="1"
-gst_element_factory_create transfer_ownership="1" nullable="1"
-gst_element_factory_create.name nullable="1"
+gst_element_factory_make hidden="1"
+gst_element_factory_create hidden="1"
gst_element_factory_get_static_pad_templates type_arguments="StaticPadTemplate"
gst_element_factory_find transfer_ownership="1" nullable="1"
gst_element_factory_get_uri_protocols is_array="1" array_null_terminated="1" transfer_ownership="1" nullable="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]