GET_INPUT_THREAD ;
- libvlc_toggle_fullscreen( input, exception );
+ libvlc_toggle_fullscreen( input, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
}
JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1setFullscreen (JNIEnv *env, jobject _this, jboolean value)
GET_INPUT_THREAD ;
- libvlc_set_fullscreen( input, value, exception );
+ libvlc_set_fullscreen( input, value, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
}
JNIEXPORT jboolean JNICALL Java_org_videolan_jvlc_Video__1getFullscreen (JNIEnv *env, jobject _this)
GET_INPUT_THREAD ;
- res = libvlc_get_fullscreen( input, exception );
+ res = libvlc_get_fullscreen( input, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
return res;
}
GET_INPUT_THREAD ;
- res = libvlc_video_get_height( input, exception );
+ res = libvlc_video_get_height( input, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
return res;
}
GET_INPUT_THREAD ;
- res = libvlc_video_get_width( input, exception );
+ res = libvlc_video_get_width( input, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
return res;
}
GET_INPUT_THREAD ;
- libvlc_video_take_snapshot( input, (char *) psz_filepath, exception );
+ libvlc_video_take_snapshot( input, (char *) psz_filepath, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
if (psz_filepath != NULL) {
env->ReleaseStringUTFChars( filepath, psz_filepath );
GET_INPUT_THREAD ;
- libvlc_video_destroy( input, exception );
+ libvlc_video_destroy( input, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE;
+ CHECK_EXCEPTION;
}
JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, jobject _this, jobject canvas)
dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
drawable = reinterpret_cast<int>(dsi_win->hwnd);
- libvlc_video_set_parent((libvlc_instance_t *) instance, drawable, exception );
+ libvlc_video_set_parent((libvlc_instance_t *) instance, drawable, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
#else // UNIX
/* Get the platform-specific drawing info */
/* and reparent */
drawable = dsi_x11->drawable;
- libvlc_video_set_parent( (libvlc_instance_t *) instance, drawable, exception );
+ libvlc_video_set_parent( (libvlc_instance_t *) instance, drawable, &exception );
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
XFreeGC(dsi_x11->display, gc);
dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
drawable = reinterpret_cast<int>(dsi_win->hwnd);
- libvlc_video_set_parent( (libvlc_instance_t *) instance, drawable, exception );
+ libvlc_video_set_parent( (libvlc_instance_t *) instance, drawable, &exception );
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
#else // UNIX
/* Get the platform-specific drawing info */
/* and reparent */
drawable = dsi_x11->drawable;
- libvlc_video_set_parent( (libvlc_instance_t *) instance, drawable, exception );
+ libvlc_video_set_parent( (libvlc_instance_t *) instance, drawable, &exception );
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
XFreeGC(dsi_x11->display, gc);
GET_INPUT_THREAD ;
- libvlc_video_resize( input, width, height, exception );
+ libvlc_video_resize( input, width, height, &exception );
libvlc_media_instance_release(input);
- CHECK_EXCEPTION_FREE ;
+ CHECK_EXCEPTION ;
}