mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 07:26:33 +00:00
6cb104a67a
Nescessary for .NET compatibility, where .dll isn't added for libraries with a . in the filename.
12 lines
480 B
Text
12 lines
480 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, 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;
|
|
}
|
|
|