Commit 358bcd05 authored by Rafaël Carré's avatar Rafaël Carré

control/: don't show warnings about unused exceptions

parent e5143838
......@@ -55,6 +55,8 @@ static aout_instance_t *GetAOut( libvlc_instance_t *p_instance,
void libvlc_audio_toggle_mute( libvlc_instance_t *p_instance,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
aout_VolumeMute( p_instance->p_libvlc_int, NULL );
}
......@@ -87,6 +89,8 @@ void libvlc_audio_set_mute( libvlc_instance_t *p_instance, vlc_bool_t mute,
int libvlc_audio_get_volume( libvlc_instance_t *p_instance,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
audio_volume_t i_volume;
aout_VolumeGet( p_instance->p_libvlc_int, &i_volume );
......
......@@ -251,6 +251,8 @@ libvlc_dynamic_media_list_media_list(
libvlc_dynamic_media_list_t * p_dmlist,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
libvlc_media_list_retain( p_dmlist->p_mlist );
return p_dmlist->p_mlist;
}
......@@ -435,6 +435,8 @@ char * libvlc_media_descriptor_get_meta( libvlc_media_descriptor_t *p_md,
libvlc_meta_t e_meta,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
char * psz_meta;
/* XXX: locking */
......@@ -497,6 +499,8 @@ void libvlc_media_descriptor_add_tag( libvlc_media_descriptor_t *p_md,
const libvlc_tag_t tag,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
struct libvlc_tags_storage_t * p_ts;
if( !tag || !key )
......@@ -528,6 +532,8 @@ void libvlc_media_descriptor_remove_tag( libvlc_media_descriptor_t *p_md,
const libvlc_tag_t tag,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
struct libvlc_tags_storage_t * p_ts;
int i;
......@@ -559,6 +565,8 @@ int libvlc_media_descriptor_tags_count_for_key( libvlc_media_descriptor_t *p_md,
const char * key,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
struct libvlc_tags_storage_t * p_ts;
if( !key )
......@@ -580,6 +588,8 @@ libvlc_media_descriptor_tag_at_index_for_key( libvlc_media_descriptor_t *p_md,
const char * key,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
struct libvlc_tags_storage_t * p_ts;
if( !key )
......@@ -600,6 +610,8 @@ libvlc_media_list_t *
libvlc_media_descriptor_subitems( libvlc_media_descriptor_t * p_md,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
if( p_md->p_subitems )
libvlc_media_list_retain( p_md->p_subitems );
return p_md->p_subitems;
......@@ -612,6 +624,8 @@ libvlc_event_manager_t *
libvlc_media_descriptor_event_manager( libvlc_media_descriptor_t * p_md,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
return p_md->p_event_manager;
}
......@@ -622,6 +636,8 @@ vlc_int64_t
libvlc_media_descriptor_get_duration( libvlc_media_descriptor_t * p_md,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
if( p_md && p_md->p_input_item)
{
return input_item_GetDuration( p_md->p_input_item );
......@@ -639,6 +655,8 @@ vlc_bool_t
libvlc_media_descriptor_is_preparsed( libvlc_media_descriptor_t * p_md,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
if( p_md && p_md->p_input_item)
{
return input_item_IsPreparsed( p_md->p_input_item );
......@@ -659,6 +677,8 @@ libvlc_media_descriptor_set_user_data( libvlc_media_descriptor_t * p_md,
void * p_new_user_data,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
if( p_md )
{
p_md->p_user_data = p_new_user_data;
......@@ -674,6 +694,8 @@ void *
libvlc_media_descriptor_get_user_data( libvlc_media_descriptor_t * p_md,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
if( p_md )
{
return p_md->p_user_data;
......
......@@ -397,6 +397,8 @@ void _libvlc_media_list_remove_index( libvlc_media_list_t * p_mlist,
int index,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
libvlc_media_descriptor_t * p_md;
p_md = vlc_array_item_at_index( &p_mlist->items, index );
......@@ -418,6 +420,8 @@ libvlc_media_list_item_at_index( libvlc_media_list_t * p_mlist,
int index,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
libvlc_media_descriptor_t * p_md;
p_md = vlc_array_item_at_index( &p_mlist->items, index );
libvlc_media_descriptor_retain( p_md );
......@@ -434,6 +438,8 @@ int libvlc_media_list_index_of_item( libvlc_media_list_t * p_mlist,
libvlc_media_descriptor_t * p_searched_md,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
libvlc_media_descriptor_t * p_md;
int i;
for ( i = 0; i < vlc_array_count( &p_mlist->items ); i++ )
......
......@@ -185,6 +185,8 @@ set_current_playing_item( libvlc_media_list_player_t * p_mlp,
libvlc_media_list_path_t path,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
libvlc_media_descriptor_t * p_md;
p_md = libvlc_media_list_item_at_path( p_mlp->p_mlist, path );
......@@ -263,6 +265,8 @@ void libvlc_media_list_player_set_media_instance(
libvlc_media_instance_t * p_mi,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
vlc_mutex_lock( &p_mlp->object_lock );
if( p_mlp->p_mi )
......
......@@ -52,6 +52,8 @@ static inline void playlist_mark_locked( libvlc_instance_t *p_instance,
void libvlc_playlist_loop( libvlc_instance_t *p_instance, vlc_bool_t loop,
libvlc_exception_t *p_e)
{
VLC_UNUSED(p_e);
assert( PL );
var_SetBool( PL, "loop", loop );
}
......@@ -60,6 +62,8 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
int i_options, char **ppsz_options,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
int did_lock = 0;
assert( PL );
///\todo Handle additionnal options
......@@ -124,6 +128,8 @@ void libvlc_playlist_stop( libvlc_instance_t *p_instance,
void libvlc_playlist_clear( libvlc_instance_t *p_instance,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
assert( PL );
playlist_Clear( PL, playlist_was_locked( p_instance ) );
}
......@@ -187,6 +193,8 @@ int libvlc_playlist_delete_item( libvlc_instance_t *p_instance, int i_id,
int libvlc_playlist_isplaying( libvlc_instance_t *p_instance,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
assert( PL );
return playlist_IsPlaying( PL );
}
......@@ -194,6 +202,8 @@ int libvlc_playlist_isplaying( libvlc_instance_t *p_instance,
int libvlc_playlist_items_count( libvlc_instance_t *p_instance,
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
assert( PL );
return playlist_CurrentSize( PL );
}
......
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