Commit 442219be authored by Philippe Morin's avatar Philippe Morin

Fix typos for WIN32 compilation of Java bindings.

parent 3a38faa2
...@@ -26,7 +26,13 @@ ...@@ -26,7 +26,13 @@
/* These are a must*/ /* These are a must*/
#include <jni.h> #include <jni.h>
#include <vlc/libvlc.h> #include <vlc/libvlc.h>
#ifdef WIN32
#include <windows.h>
#undef usleep
#define usleep(var) Sleep(var/1000)
#else
#include <unistd.h> #include <unistd.h>
#endif
#include <stdio.h> #include <stdio.h>
/* JVLC internal imports, generated by gcjh */ /* JVLC internal imports, generated by gcjh */
......
...@@ -183,7 +183,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job ...@@ -183,7 +183,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job
dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo; dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
drawable = reinterpret_cast<int>(dsi_win->hwnd); 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 ; CHECK_EXCEPTION_FREE ;
...@@ -269,7 +269,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1paint (JNIEnv *env, jobjec ...@@ -269,7 +269,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1paint (JNIEnv *env, jobjec
dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo; dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
drawable = reinterpret_cast<int>(dsi_win->hwnd); 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 ; CHECK_EXCEPTION_FREE ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment