6
#include <vlc/libvlc.h>
7
#include <stdlib.h> // for free
9
void handle_vlc_exception( JNIEnv*, libvlc_exception_t* );
10
jlong getInstance ( JNIEnv* , jobject );
12
#define CHECK_EXCEPTION_FREE \
13
if ( libvlc_exception_raised( exception )) \
15
handle_vlc_exception( env, exception ); \
19
#define CHECK_EXCEPTION \
20
if ( libvlc_exception_raised( exception )) \
22
handle_vlc_exception( env, exception ); \
26
#define INIT_FUNCTION \
28
libvlc_exception_t *exception = ( libvlc_exception_t * ) malloc( sizeof( libvlc_exception_t )); \
29
libvlc_exception_init( exception ); \
30
instance = getInstance( env, _this );
32
#define GET_INPUT_THREAD \
33
libvlc_input_t *input; \
34
input = libvlc_playlist_get_input( ( libvlc_instance_t *) instance, exception ); \