Add bindings for CapsFilter
authorMaarten Bosmans <mkbosmans@gmail.com>
Mon, 25 May 2009 10:20:20 +0000 (12:20 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 25 May 2009 10:20:20 +0000 (12:20 +0200)
Fixes bug #583631.

gstreamer-sharp/coreplugins/CapsFilter.cs [new file with mode: 0644]

diff --git a/gstreamer-sharp/coreplugins/CapsFilter.cs b/gstreamer-sharp/coreplugins/CapsFilter.cs
new file mode 100644 (file)
index 0000000..1b8b5e2
--- /dev/null
@@ -0,0 +1,39 @@
+//
+// CapsFilter.cs: capsfilter element bindings
+//
+// Authors:
+//   Maarten Bosmans <mkbosmans@gmail.com>
+//
+
+using System;
+
+namespace Gst.CorePlugins
+{
+    [GTypeName("GstCapsFilter")]
+    public class CapsFilter : Element 
+    {
+        public CapsFilter(IntPtr raw) : base(raw) 
+        {
+        } 
+        
+        public static CapsFilter Make(string name)
+        {
+            return ElementFactory.Make("capsfilter", name) as CapsFilter;
+        }
+
+        [GLib.Property("caps")]
+        public Gst.Caps Caps {
+            get { 
+                GLib.Value val = GetProperty("caps");
+                Gst.Caps caps = (Gst.Caps)val.Val;
+                val.Dispose();
+                return caps;
+            }
+           set {
+                GLib.Value val = new GLib.Value(value);
+                SetProperty("caps", val);
+                val.Dispose();
+           }
+        }
+    }
+}