TagList: Fix Value passing
authorStephan Sundermann <ssundermann@gnome.org>
Thu, 7 Aug 2014 15:15:29 +0000 (17:15 +0200)
committerStephan Sundermann <ssundermann@gnome.org>
Thu, 7 Aug 2014 15:15:29 +0000 (17:15 +0200)
sources/custom/TagList.cs
sources/gstreamer-sharp.metadata

index 791357630738fc9a8d859344f2ccd89a1633d1f8..8be903de06696298fa48ce70323e6ba67028e5e3 100644 (file)
@@ -28,10 +28,10 @@ namespace Gst
 
                public object this [string tag] {
                        get {
-                               GLib.Value v;
+                               var v = GLib.Value.Empty;
                                bool success;
 
-                               success = CopyValue (out v, this, tag);
+                               success = CopyValue (ref v, this, tag);
 
                                if (!success)
                                        return null;
index fbb36abe7c2922ff70a65fb8fbaafb32a0760ebd..bb50df82365869c7a1d594922542e26cfee6b007 100644 (file)
@@ -209,6 +209,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
        <attr path="//method[parameters/parameter[contains(@type, 'Class*')]]" name="hidden">true</attr>
        <attr path="//struct[@cname='GstMapInfo']/field[@name='Data']" name="type">gpointer</attr>
        <attr path="//struct[@cname='GstMapInfo']/field[@name='Data']" name="array">false</attr>
+       <attr path="//method[@cname='gst_tag_list_copy_value']/parameters/parameter[@name='dest']" name="pass_as">ref</attr>
     <!-- buffer fixes -->
        <attr path="//constructor[@cname='gst_buffer_new_wrapped']/parameters/parameter[@name='data']" name="type">guint8*</attr>
        <attr path="//constructor[@cname='gst_buffer_new_wrapped']/parameters/parameter[@name='size']" name="name">n_length</attr>