From cdc9fcd45dbc3c4f9dedf97894864b426f6b3d05 Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Mon, 25 May 2009 12:20:20 +0200 Subject: [PATCH] Add bindings for CapsFilter Fixes bug #583631. --- gstreamer-sharp/coreplugins/CapsFilter.cs | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 gstreamer-sharp/coreplugins/CapsFilter.cs diff --git a/gstreamer-sharp/coreplugins/CapsFilter.cs b/gstreamer-sharp/coreplugins/CapsFilter.cs new file mode 100644 index 0000000000..1b8b5e2b41 --- /dev/null +++ b/gstreamer-sharp/coreplugins/CapsFilter.cs @@ -0,0 +1,39 @@ +// +// CapsFilter.cs: capsfilter element bindings +// +// Authors: +// Maarten Bosmans +// + +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(); + } + } + } +}