Author: jzwart
Date: 2005-03-16 04:51:22 -0500 (Wed, 16 Mar 2005)
New Revision: 41876

Modified:
   trunk/gst-sharp/ChangeLog
   trunk/gst-sharp/gst-sharp/Element.custom
Log:
2005-03-16  Jeroen Zwartepoorte  <[EMAIL PROTECTED]>

        * gst-sharp/Element.custom: Marshal the property name for GetProperty.



Modified: trunk/gst-sharp/ChangeLog
===================================================================
--- trunk/gst-sharp/ChangeLog   2005-03-16 09:43:46 UTC (rev 41875)
+++ trunk/gst-sharp/ChangeLog   2005-03-16 09:51:22 UTC (rev 41876)
@@ -1,5 +1,9 @@
 2005-03-16  Jeroen Zwartepoorte  <[EMAIL PROTECTED]>
 
+       * gst-sharp/Element.custom: Marshal the property name for GetProperty.
+
+2005-03-16  Jeroen Zwartepoorte  <[EMAIL PROTECTED]>
+
        * configure.in: Require Gtk# 1.9.2.99.
        * gst-sharp/Application.cs: Use new GLib.Argv.
        * gst-sharp/Element.custom: Marshal property name, add new keyword.

Modified: trunk/gst-sharp/gst-sharp/Element.custom
===================================================================
--- trunk/gst-sharp/gst-sharp/Element.custom    2005-03-16 09:43:46 UTC (rev 
41875)
+++ trunk/gst-sharp/gst-sharp/Element.custom    2005-03-16 09:51:22 UTC (rev 
41876)
@@ -5,11 +5,13 @@
 //
 
                 [DllImport("gstreamer-0.8")]
-                static extern void gst_element_get_property(IntPtr raw, string 
property_name, ref GLib.Value value);
+                static extern void gst_element_get_property(IntPtr raw, IntPtr 
property_name, ref GLib.Value value);
 
                 public new GLib.Value GetProperty (string property_name) {
+                       IntPtr property_name_as_native = 
GLib.Marshaller.StringToPtrGStrdup (property_name);
                         GLib.Value val = new GLib.Value (this, property_name);
-                        gst_element_get_property (Handle, property_name, ref 
val);
+                        gst_element_get_property (Handle, 
property_name_as_native, ref val);
+                       GLib.Marshaller.Free (property_name_as_native);
                         return val;
                 }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to