summaryrefslogtreecommitdiff
path: root/gstreamer-sharp/IndexFactory.custom
blob: 3caa50fe8088600de6c7f0032707fec5699ceecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[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;
}