[Gtk-sharp-list] Gst# problem
Mark Crichton
crichton@gimp.org
Mon, 02 May 2005 06:38:34 -0400
This is a multi-part message in MIME format.
--------------060200010607060307000405
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I've been working on coding up some simple Gst# apps, and have run into
a little snag. I've attached some simple code that should give me a
listing of all the plugins in the gst registry (the C code that would do
this does work), but the C# code keeps bombing out with a
System.NullReferenceException. Wondering if there is some (hackish) way
I could munge the GLib.List that is returned so I can see what's going
on myself.
Thanks,
Mark Crichton
--------------060200010607060307000405
Content-Type: text/x-csharp;
name="Element.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Element.cs"
using System;
using GLib;
using Gst;
public class GstTest
{
static void Main(string[] args)
{
Application.Init("Introspector", ref args);
// create a new bin to hold the elements
List plugins = Registry.PoolPluginList();
Console.WriteLine("plugins: " + plugins.Count);
foreach (object o in plugins) {
Console.WriteLine(o.GetType());
}
}
}
--------------060200010607060307000405--