From 14831575e643341541b263015f73dd2afff0c3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 30 Apr 2009 17:26:44 +0200 Subject: [PATCH] Don't use the ThresholdType but the real type --- gstreamer-sharp/Element.custom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer-sharp/Element.custom b/gstreamer-sharp/Element.custom index 5c65a059c6..784f4107fd 100644 --- a/gstreamer-sharp/Element.custom +++ b/gstreamer-sharp/Element.custom @@ -203,7 +203,7 @@ protected static void AddPadTemplate (GLib.GType gtype, Gst.PadTemplate templ) { static extern IntPtr gst_element_class_get_pad_template (IntPtr klass, IntPtr name); public Gst.PadTemplate GetPadTemplate (string name) { - GLib.GType gtype = this.LookupGType ().ThresholdType; + GLib.GType gtype = this.LookupGType (); IntPtr class_ptr = new IntPtr (gtype.ClassPtr.ToInt64 ()); IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name); IntPtr raw_ret = gst_element_class_get_pad_template (class_ptr, native_name); @@ -217,7 +217,7 @@ static extern IntPtr gst_element_class_get_pad_template_list (IntPtr klass); public Gst.PadTemplate[] PadTemplates { get { - GLib.GType gtype = this.LookupGType ().ThresholdType; + GLib.GType gtype = this.LookupGType (); IntPtr class_ptr = new IntPtr (gtype.ClassPtr.ToInt64 ()); IntPtr raw_ret = gst_element_class_get_pad_template_list (class_ptr);