[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.
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.

Mark Crichton

Content-Type: text/x-csharp;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

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) {