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

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());
		}
	}
}

Reply via email to