From 0196d9b622d01170385674d732bf539ce2b2036f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 5 Jun 2009 12:47:07 +0200 Subject: [PATCH] Fix marshalling of the URIHandler GetType method --- gstreamer-sharp/override/URIHandlerAdapter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gstreamer-sharp/override/URIHandlerAdapter.cs b/gstreamer-sharp/override/URIHandlerAdapter.cs index dfd84ee246..30265b6022 100644 --- a/gstreamer-sharp/override/URIHandlerAdapter.cs +++ b/gstreamer-sharp/override/URIHandlerAdapter.cs @@ -58,18 +58,18 @@ namespace Gst { } [GLib.CDeclCallback] - delegate IntPtr[] GetProtocolsFullNativeDelegate (IntPtr gtype); + delegate IntPtr GetProtocolsFullNativeDelegate (IntPtr gtype); static Hashtable protocols_cache = new Hashtable (); - static IntPtr[] GetProtocolsFull_cb (IntPtr gtype) + static IntPtr GetProtocolsFull_cb (IntPtr gtype) { try { GLib.GType gt = new GLib.GType (gtype); System.Type t = (System.Type) gt; if (protocols_cache.Contains (gtype)) { - return (IntPtr[]) protocols_cache[gtype]; + return (IntPtr) protocols_cache[gtype]; } System.Reflection.PropertyInfo pi = t.GetProperty ("Protocols", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy); @@ -78,7 +78,7 @@ namespace Gst { __result = (string[]) pi.GetValue (null, null); else __result = new string[] {}; - IntPtr[] ret = GLib.Marshaller.StringArrayToNullTermPointer (__result); + IntPtr ret = Gst.Marshaller.StringArrayToNullTermPointer (__result); protocols_cache.Add (gtype, ret); return ret;