/* These are a must*/\r
#include <jni.h>\r
#include <vlc/libvlc.h>\r
+#ifdef WIN32\r
+#include <windows.h>\r
+#undef usleep\r
+#define usleep(var) Sleep(var/1000)\r
+#else\r
#include <unistd.h>\r
+#endif\r
#include <stdio.h>\r
\r
/* JVLC internal imports, generated by gcjh */\r
dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
drawable = reinterpret_cast<int>(dsi_win->hwnd);
- libvlc_video_set_parent( input, drawable, exception );
+ libvlc_video_set_parent((libvlc_instance_t *) instance, drawable, exception );
CHECK_EXCEPTION_FREE ;
dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
drawable = reinterpret_cast<int>(dsi_win->hwnd);
- libvlc_video_set_parent( input, drawable, exception );
+ libvlc_video_set_parent( (libvlc_instance_t *) instance, drawable, exception );
CHECK_EXCEPTION_FREE ;