summaryrefslogtreecommitdiff
path: root/samples/BasicTutorial5.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/BasicTutorial5.cs')
-rw-r--r--samples/BasicTutorial5.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/BasicTutorial5.cs b/samples/BasicTutorial5.cs
index b169349..b82564d 100644
--- a/samples/BasicTutorial5.cs
+++ b/samples/BasicTutorial5.cs
@@ -50,7 +50,7 @@ namespace GstreamerSharp
{
var widget = (Widget)sender;
var window = widget.Window;
- ulong windowID = 0;
+ IntPtr windowID = IntPtr.Zero;
// Retrieve window handler from GDK
switch (System.Environment.OSVersion.Platform) {
@@ -61,7 +61,7 @@ namespace GstreamerSharp
case PlatformID.Win32S:
case PlatformID.Win32Windows:
case PlatformID.WinCE:
- windowID = (ulong) gdk_win32_drawable_get_handle (window.Handle);
+ windowID = gdk_win32_drawable_get_handle (window.Handle);
break;
}
@@ -356,7 +356,7 @@ namespace GstreamerSharp
}
[DllImport ("libgdk-3.so.0") ]
- static extern uint gdk_x11_window_get_xid (IntPtr handle);
+ static extern IntPtr gdk_x11_window_get_xid (IntPtr handle);
[DllImport ("libgdk-win32-3.0-0.dll") ]
static extern IntPtr gdk_win32_drawable_get_handle (IntPtr handle);
@@ -364,4 +364,4 @@ namespace GstreamerSharp
[DllImport ("libX11.so.6")]
static extern int XInitThreads ();
}
-} \ No newline at end of file
+}