mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +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.
12 lines
484 B
Text
12 lines
484 B
Text
[DllImport ("gstreamersharpglue-0.10.dll") ]
|
|
static extern void gstsharp_gst_index_factory_set_plugin (IntPtr factory, IntPtr plugin);
|
|
|
|
public static bool Register (Gst.Plugin plugin, string name, string longdesc, Gst.GLib.GType gtype) {
|
|
Gst.IndexFactory factory = new Gst.IndexFactory (name, longdesc, gtype);
|
|
gstsharp_gst_index_factory_set_plugin (factory.Handle, (plugin != null) ? plugin.Handle : IntPtr.Zero);
|
|
|
|
Gst.Registry.Default.AddFeature (factory);
|
|
|
|
return true;
|
|
}
|
|
|