mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
aa7bb8fa1c
glib-sharp will only get a new release with the new API that we need for 3.0 in a year or something. Instead of waiting a year before we can release something we now have our own internal copy of glib-sharp trunk that will be dropped once glib-sharp 3.0 is released. Everything is now compilable and working without any additional patches.
14 lines
610 B
Text
14 lines
610 B
Text
[DllImport ("libgstreamer-0.10.dll") ]
|
|
static extern IntPtr gst_element_factory_make (IntPtr element, IntPtr name);
|
|
|
|
public AppSrc (string name) : base (IntPtr.Zero) {
|
|
IntPtr native_name = Gst.GLib.Marshaller.StringToPtrGStrdup (name);
|
|
IntPtr native_element = Gst.GLib.Marshaller.StringToPtrGStrdup ("appsrc");
|
|
Raw = gst_element_factory_make (native_element, native_name);
|
|
Gst.GLib.Marshaller.Free (native_name);
|
|
Gst.GLib.Marshaller.Free (native_element);
|
|
if (Raw == IntPtr.Zero)
|
|
throw new Exception ("Failed to instantiate element \"appsrc\"");
|
|
}
|
|
|
|
public AppSrc () : this ( (string) null) { }
|