2002-11-01 05:10:00 +00:00
|
|
|
//
|
|
|
|
// Application.cs - Gst initialization
|
|
|
|
//
|
|
|
|
// Author: Alp Toker <alp@atoker.com>
|
|
|
|
//
|
|
|
|
// 2002 (C) Copyright, Alp Toker
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
namespace Gst {
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
public class Application {
|
|
|
|
|
2002-12-20 05:44:17 +00:00
|
|
|
[DllImport("gstreamer")]
|
2002-11-01 05:10:00 +00:00
|
|
|
static extern void gst_init (int argc, IntPtr argv);
|
|
|
|
|
|
|
|
public static void Init ()
|
|
|
|
{
|
|
|
|
gst_init (0, new IntPtr(0));
|
|
|
|
}
|
|
|
|
|
2002-12-20 05:44:17 +00:00
|
|
|
[DllImport("gstreamer")]
|
2002-11-01 05:10:00 +00:00
|
|
|
static extern void gst_init (ref int argc, ref String[] argv);
|
|
|
|
|
|
|
|
public static void Init (ref string[] args)
|
|
|
|
{
|
|
|
|
int argc = args.Length;
|
|
|
|
gst_init (ref argc, ref args);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|