}
case ID_input_hasvout:
{
- bool val = p_plugin->player_has_vout(&ex);
- RETURN_ON_EXCEPTION(this,ex);
+ bool val = p_plugin->player_has_vout();
BOOLEAN_TO_NPVARIANT(val, result);
return INVOKERESULT_NO_ERROR;
}
case ID_playlistitems_clear:
if( argCount == 0 )
{
- p_plugin->playlist_clear(&ex);
- RETURN_ON_EXCEPTION(this,ex);
+ p_plugin->playlist_clear();
VOID_TO_NPVARIANT(result);
return INVOKERESULT_NO_ERROR;
}
case ID_playlist_clear: /* deprecated */
if( argCount == 0 )
{
- p_plugin->playlist_clear(&ex);
- RETURN_ON_EXCEPTION(this,ex);
+ p_plugin->playlist_clear();
VOID_TO_NPVARIANT(result);
return INVOKERESULT_NO_ERROR;
}
case ID_subtitle_track:
{
/* get the current subtitle ID */
- int i_spu = libvlc_video_get_spu(p_md, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ int i_spu = libvlc_video_get_spu(p_md);
/* return it */
INT32_TO_NPVARIANT(i_spu, result);
return INVOKERESULT_NO_ERROR;
case ID_subtitle_count:
{
/* get the number of subtitles available */
- int i_spu = libvlc_video_get_spu_count(p_md, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ int i_spu = libvlc_video_get_spu_count(p_md);
/* return it */
INT32_TO_NPVARIANT(i_spu, result);
return INVOKERESULT_NO_ERROR;
if( isNumberValue(value) )
{
/* set the new subtitle track to show */
- libvlc_video_set_spu(p_md, numberValue(value), &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ libvlc_video_set_spu(p_md, numberValue(value));
return INVOKERESULT_NO_ERROR;
}
return INVOKERESULT_GENERIC_ERROR;
/* get the number of subtitle available */
- i_limit = libvlc_video_get_spu_count(p_md, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ i_limit = libvlc_video_get_spu_count(p_md);
/* check if a number is given by the user
* and get the subtitle number */
{
case ID_video_fullscreen:
{
- int val = p_plugin->get_fullscreen(&ex);
- RETURN_ON_EXCEPTION(this,ex);
+ int val = p_plugin->get_fullscreen();
BOOLEAN_TO_NPVARIANT(val, result);
return INVOKERESULT_NO_ERROR;
}
case ID_video_height:
{
- int val = libvlc_video_get_height(p_md, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ int val = libvlc_video_get_height(p_md);
INT32_TO_NPVARIANT(val, result);
return INVOKERESULT_NO_ERROR;
}
case ID_video_width:
{
- int val = libvlc_video_get_width(p_md, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ int val = libvlc_video_get_width(p_md);
INT32_TO_NPVARIANT(val, result);
return INVOKERESULT_NO_ERROR;
}
case ID_video_aspectratio:
{
- NPUTF8 *psz_aspect = libvlc_video_get_aspect_ratio(p_md, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ NPUTF8 *psz_aspect = libvlc_video_get_aspect_ratio(p_md);
if( !psz_aspect )
return INVOKERESULT_GENERIC_ERROR;
}
case ID_video_subtitle:
{
- int i_spu = libvlc_video_get_spu(p_md, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ int i_spu = libvlc_video_get_spu(p_md);
INT32_TO_NPVARIANT(i_spu, result);
return INVOKERESULT_NO_ERROR;
}
case ID_video_crop:
{
- NPUTF8 *psz_geometry = libvlc_video_get_crop_geometry(p_md, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ NPUTF8 *psz_geometry = libvlc_video_get_crop_geometry(p_md);
if( !psz_geometry )
return INVOKERESULT_GENERIC_ERROR;
}
int val = NPVARIANT_TO_BOOLEAN(value);
- p_plugin->set_fullscreen(val, &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ p_plugin->set_fullscreen(val);
return INVOKERESULT_NO_ERROR;
}
case ID_video_aspectratio:
return INVOKERESULT_GENERIC_ERROR;
}
- libvlc_video_set_aspect_ratio(p_md, psz_aspect, &ex);
+ libvlc_video_set_aspect_ratio(p_md, psz_aspect);
free(psz_aspect);
- RETURN_ON_EXCEPTION(this,ex);
return INVOKERESULT_NO_ERROR;
}
{
if( isNumberValue(value) )
{
- libvlc_video_set_spu(p_md, numberValue(value), &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ libvlc_video_set_spu(p_md, numberValue(value));
return INVOKERESULT_NO_ERROR;
}
return INVOKERESULT_GENERIC_ERROR;
}
- libvlc_video_set_crop_geometry(p_md, psz_geometry, &ex);
+ libvlc_video_set_crop_geometry(p_md, psz_geometry);
free(psz_geometry);
- RETURN_ON_EXCEPTION(this,ex);
return INVOKERESULT_NO_ERROR;
}
{
if( argCount == 0 )
{
- p_plugin->toggle_fullscreen(&ex);
- RETURN_ON_EXCEPTION(this,ex);
+ p_plugin->toggle_fullscreen();
VOID_TO_NPVARIANT(result);
return INVOKERESULT_NO_ERROR;
}
switch( index )
{
case ID_deint_disable:
- libvlc_video_set_deinterlace(p_md, 0, "", &ex);
- RETURN_ON_EXCEPTION(this,ex);
+ libvlc_video_set_deinterlace(p_md, NULL);
break;
case ID_deint_enable:
return INVOKERESULT_INVALID_VALUE;
psz = stringValue( NPVARIANT_TO_STRING( args[0] ) );
- libvlc_video_set_deinterlace(p_md, 1, psz, &ex);
+ libvlc_video_set_deinterlace(p_md, psz);
free(psz);
- RETURN_ON_EXCEPTION(this,ex);
break;
default: