]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-0.10: Fix ElementFactory methods and ElementFactoryListType
authorJens Georg <mail@jensge.org>
Sun, 6 Nov 2011 12:51:50 +0000 (13:51 +0100)
committerJürg Billeter <j@bitron.ch>
Wed, 30 Nov 2011 13:54:47 +0000 (14:54 +0100)
Set proper return type and ownership for ElementFactory.list_filter
and ElementFactory.list_get_elements as well as making
ElementFactoryListType inherit from int64.

Fixes bug 663499.

vapi/gstreamer-0.10.vapi
vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata

index fed7e7139c082bd81140a21f8604efc7099106e9..6333a6e516083bfca60fefc7678803ec388dd1a1 100644 (file)
@@ -528,16 +528,12 @@ namespace Gst {
                public string[]? get_uri_protocols ();
                public int get_uri_type ();
                public bool has_interface (string interfacename);
-               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 static GLib.List<Gst.ElementFactory> list_filter (GLib.List<Gst.ElementFactory> list, Gst.Caps caps, Gst.PadDirection direction, bool subsetonly);
+               public static GLib.List<Gst.ElementFactory> 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")]
-       [Compact]
-       public class ElementFactoryListType {
-       }
        [CCode (cheader_filename = "gst/gst.h", ref_function = "gst_event_ref", unref_function = "gst_event_unref")]
        public class Event : Gst.MiniObject {
                public weak Gst.Object src;
@@ -1616,6 +1612,9 @@ namespace Gst {
                public weak string author;
        }
        [CCode (cheader_filename = "gst/gst.h")]
+       public struct ElementFactoryListType : uint64 {
+       }
+       [CCode (cheader_filename = "gst/gst.h")]
        public struct FormatDefinition {
                public Gst.Format value;
                public weak string nick;
index 9f0f449512040679b1a65aa886217dc45f2d1606..dc85a053686727bc18e0299e1f74e26f9b7626f8 100644 (file)
@@ -539,4 +539,7 @@ namespace Gst {
                public static void ignored (Gst.Poll @set, Gst.PollFD fd);
                public void init ();
        }
+
+       public struct ElementFactoryListType : uint64 {
+       }
 }
index ebd2f9a4307294c1ea2615e8f8245415d208c3f1..1471dcf43de77ac5f5dc5031b77fa986c18d5d38 100644 (file)
@@ -170,6 +170,10 @@ 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"
+gst_element_factory_list_get_elements transfer_ownership="1" type_arguments="ElementFactory"
+gst_element_factory_list_filter transfer_ownership="1" type_arguments="ElementFactory"
+gst_element_factory_list_filter.list transfer_ownership="0" type_arguments="ElementFactory"
+GstElementFactoryListType hidden="1"
 gst_error_get_message transfer_ownership="1"
 GstEvent base_class="GstMiniObject"
 GstEvent.mini_object hidden="1"