mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 06:31:08 +00:00
Don't use the ThresholdType but the real type
This commit is contained in:
parent
51540e9f80
commit
14831575e6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue