gstreamer/gstreamer-sharp/Clock.custom
Michael Dominic K 6566359e35 2006-06-04 Michael Dominic K. <michaldominik@gmail.com>
* sample/DecodeBinTranscoder.cs: Fixing ambigious cast.

	* gstreamer-sharp/glue/clock.c:
	* gstreamer-sharp/Clock.custom: Changing the gint64 to guint64 and
	long to ulong respectively. The clocktime (GstClockTime) is measured
	in nanoseconds as unsigned long inside GStreamer. 
	This is introducing a small schizophrenia since some functions (such
	as queries, seeks) take signed long (-1 to mark infinity or error).
	This is the expected Gst behaviour.
	Just sticking silently to long (instead of ulong) will bork us 	sooner
	or later, especially for custom-build low level routines/elements.
	Comments welcome.



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@61438 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-06-04 13:11:24 +00:00

20 lines
766 B
Text

[DllImport("gstsharpglue-0.10")]
private extern static ulong gstsharp_gst_clock_get_gst_second();
public static readonly ulong GstSecond = gstsharp_gst_clock_get_gst_second();
[DllImport("gstsharpglue-0.10")]
private extern static ulong gstsharp_gst_clock_get_gst_msecond();
public static readonly ulong GstMSecond = gstsharp_gst_clock_get_gst_second();
[DllImport("gstsharpglue-0.10")]
private extern static ulong gstsharp_gst_clock_get_gst_usecond();
public static readonly ulong GstUSecond = gstsharp_gst_clock_get_gst_second();
[DllImport("gstsharpglue-0.10")]
private extern static ulong gstsharp_gst_clock_get_gst_nsecond();
public static readonly ulong GstNSecond = gstsharp_gst_clock_get_gst_second();