GET_INPUT_THREAD ;
res = libvlc_media_instance_get_length( input, exception );
+
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE;
return res;
GET_INPUT_THREAD ;
res = libvlc_media_instance_get_position( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE;
return res;
GET_INPUT_THREAD ;
res = libvlc_media_instance_get_time( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
return res;
GET_INPUT_THREAD ;
res = libvlc_media_instance_get_fps( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
return res;
GET_INPUT_THREAD ;
libvlc_media_instance_set_time( input, time, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE;
}
GET_INPUT_THREAD ;
libvlc_media_instance_set_position( input, position, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE;
}
GET_INPUT_THREAD ;
res = libvlc_media_instance_will_play( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
return res;
GET_INPUT_THREAD ;
res = libvlc_media_instance_has_vout( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
return res;
libvlc_toggle_fullscreen( input, exception );
+ libvlc_media_instance_release(input);
+
CHECK_EXCEPTION_FREE ;
}
libvlc_set_fullscreen( input, value, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
}
res = libvlc_get_fullscreen( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
return res;
res = libvlc_video_get_height( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
return res;
res = libvlc_video_get_width( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
return res;
libvlc_video_take_snapshot( input, (char *) psz_filepath, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
if (psz_filepath != NULL) {
libvlc_video_destroy( input, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE;
}
awt.version = JAWT_VERSION_1_3;
if (JAWT_GetAWT(env, &awt) == JNI_FALSE) {
printf("AWT Not found\n");
+ libvlc_media_instance_release(input);
return;
}
ds = awt.GetDrawingSurface(env, canvas);
if (ds == NULL) {
printf("NULL drawing surface\n");
+ libvlc_media_instance_release(input);
return;
}
if((lock & JAWT_LOCK_ERROR) != 0) {
printf("Error locking surface\n");
awt.FreeDrawingSurface(ds);
+ libvlc_media_instance_release(input);
return;
}
printf("Error getting surface info\n");
ds->Unlock(ds);
awt.FreeDrawingSurface(ds);
+ libvlc_media_instance_release(input);
return;
}
drawable = reinterpret_cast<int>(dsi_win->hwnd);
libvlc_video_set_parent((libvlc_instance_t *) instance, drawable, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
libvlc_video_resize( input, width, height, exception );
+ libvlc_media_instance_release(input);
CHECK_EXCEPTION_FREE ;
}