mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 23:16:38 +00:00
Fix indention and make Gst.Element.GetPadTemplates() a property
This commit is contained in:
parent
54a34ed67c
commit
51540e9f80
1 changed files with 18 additions and 16 deletions
|
@ -215,13 +215,15 @@ public Gst.PadTemplate GetPadTemplate (string name) {
|
|||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
static extern IntPtr gst_element_class_get_pad_template_list (IntPtr klass);
|
||||
|
||||
public Gst.PadTemplate[] GetPadTemplates () {
|
||||
public Gst.PadTemplate[] PadTemplates {
|
||||
get {
|
||||
GLib.GType gtype = this.LookupGType ().ThresholdType;
|
||||
IntPtr class_ptr = new IntPtr (gtype.ClassPtr.ToInt64 ());
|
||||
IntPtr raw_ret = gst_element_class_get_pad_template_list (class_ptr);
|
||||
|
||||
return (Gst.PadTemplate[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof (GLib.List), false, false, typeof (Gst.PadTemplate));
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
static extern void gst_element_class_set_details_simple (IntPtr klass, IntPtr longname, IntPtr classification, IntPtr desc, IntPtr author);
|
||||
|
|
Loading…
Reference in a new issue