]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-pbutils-0.10: Ownership transfer fixes
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 16 Mar 2009 09:16:01 +0000 (10:16 +0100)
committerJürg Billeter <j@bitron.ch>
Sun, 29 Mar 2009 14:30:49 +0000 (16:30 +0200)
According to the documentation, these functions return newly-allocated
structures, so they must transfer the ownership in vala context in
order to prevent memory leaks.

Fixes bug 575532.

vapi/gstreamer-pbutils-0.10.vapi
vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata

index 2d9ad14508840f3676108567d6d94e73a04de7ec..78873117e220b6de5527ff36ec996ac0932c871c 100644 (file)
@@ -1,9 +1,9 @@
-/* gstreamer-pbutils-0.10.vapi generated by lt-vapigen, do not modify. */
+/* gstreamer-pbutils-0.10.vapi generated by vapigen, do not modify. */
 
 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
 namespace Gst {
        [Compact]
-       [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
+       [CCode (type_id = "GST_TYPE_INSTALL_PLUGINS_CONTEXT", cheader_filename = "gst/pbutils/pbutils.h")]
        public class InstallPluginsContext {
                [CCode (has_construct_function = false)]
                public InstallPluginsContext ();
@@ -38,29 +38,29 @@ namespace Gst {
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
        public static bool is_missing_plugin_message (Gst.Message msg);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned string missing_decoder_installer_detail_new (Gst.Caps decode_caps);
+       public static string missing_decoder_installer_detail_new (Gst.Caps decode_caps);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned Gst.Message missing_decoder_message_new (Gst.Element element, Gst.Caps decode_caps);
+       public static Gst.Message missing_decoder_message_new (Gst.Element element, Gst.Caps decode_caps);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned string missing_element_installer_detail_new (string factory_name);
+       public static string missing_element_installer_detail_new (string factory_name);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned Gst.Message missing_element_message_new (Gst.Element element, string factory_name);
+       public static Gst.Message missing_element_message_new (Gst.Element element, string factory_name);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned string missing_encoder_installer_detail_new (Gst.Caps encode_caps);
+       public static string missing_encoder_installer_detail_new (Gst.Caps encode_caps);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned Gst.Message missing_encoder_message_new (Gst.Element element, Gst.Caps encode_caps);
+       public static Gst.Message missing_encoder_message_new (Gst.Element element, Gst.Caps encode_caps);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned string missing_plugin_message_get_description (Gst.Message msg);
+       public static string missing_plugin_message_get_description (Gst.Message msg);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned string missing_plugin_message_get_installer_detail (Gst.Message msg);
+       public static string missing_plugin_message_get_installer_detail (Gst.Message msg);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned string missing_uri_sink_installer_detail_new (string protocol);
+       public static string missing_uri_sink_installer_detail_new (string protocol);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned Gst.Message missing_uri_sink_message_new (Gst.Element element, string protocol);
+       public static Gst.Message missing_uri_sink_message_new (Gst.Element element, string protocol);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned string missing_uri_source_installer_detail_new (string protocol);
+       public static string missing_uri_source_installer_detail_new (string protocol);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
-       public static unowned Gst.Message missing_uri_source_message_new (Gst.Element element, string protocol);
+       public static Gst.Message missing_uri_source_message_new (Gst.Element element, string protocol);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
        public static bool pb_utils_add_codec_description_to_tag_list (Gst.TagList taglist, string codec_tag, Gst.Caps caps);
        [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
index cb1c766e700eeef69d125237e13db4a93421f0a5..a92f921646ff3836f6614b5b7827c438ef43a0bc 100644 (file)
@@ -1 +1,13 @@
 Gst cprefix="Gst" lower_case_cprefix="gst_" cheader_filename="gst/pbutils/pbutils.h"
+gst_missing_plugin_message_get_description transfer_ownership="1"
+gst_missing_plugin_message_get_installer_detail transfer_ownership="1"
+gst_missing_decoder_message_new transfer_ownership="1"
+gst_missing_encoder_message_new transfer_ownership="1"
+gst_missing_uri_source_message_new transfer_ownership="1"
+gst_missing_uri_sink_message_new transfer_ownership="1"
+gst_missing_element_message_new transfer_ownership="1"
+gst_missing_uri_source_installer_detail_new transfer_ownership="1"
+gst_missing_uri_sink_installer_detail_new transfer_ownership="1"
+gst_missing_element_installer_detail_new transfer_ownership="1"
+gst_missing_decoder_installer_detail_new transfer_ownership="1"
+gst_missing_encoder_installer_detail_new transfer_ownership="1"