Commit 0102564f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove useless exception parameters

parent b79a3de0
...@@ -356,10 +356,8 @@ libvlc_media_t * libvlc_media_new_as_node( ...@@ -356,10 +356,8 @@ libvlc_media_t * libvlc_media_new_as_node(
**************************************************************************/ **************************************************************************/
void libvlc_media_add_option( void libvlc_media_add_option(
libvlc_media_t * p_md, libvlc_media_t * p_md,
const char * psz_option, const char * psz_option )
libvlc_exception_t *p_e )
{ {
VLC_UNUSED(p_e);
input_item_AddOption( p_md->p_input_item, psz_option, input_item_AddOption( p_md->p_input_item, psz_option,
VLC_INPUT_OPTION_UNIQUE|VLC_INPUT_OPTION_TRUSTED ); VLC_INPUT_OPTION_UNIQUE|VLC_INPUT_OPTION_TRUSTED );
} }
...@@ -370,10 +368,8 @@ void libvlc_media_add_option( ...@@ -370,10 +368,8 @@ void libvlc_media_add_option(
void libvlc_media_add_option_flag( void libvlc_media_add_option_flag(
libvlc_media_t * p_md, libvlc_media_t * p_md,
const char * ppsz_option, const char * ppsz_option,
libvlc_media_option_t i_flags, libvlc_media_option_t i_flags )
libvlc_exception_t *p_e )
{ {
VLC_UNUSED(p_e);
input_item_AddOption( p_md->p_input_item, ppsz_option, input_item_AddOption( p_md->p_input_item, ppsz_option,
i_flags ); i_flags );
} }
...@@ -435,10 +431,9 @@ libvlc_media_duplicate( libvlc_media_t *p_md_orig ) ...@@ -435,10 +431,9 @@ libvlc_media_duplicate( libvlc_media_t *p_md_orig )
* Get mrl from a media descriptor object * Get mrl from a media descriptor object
**************************************************************************/ **************************************************************************/
char * char *
libvlc_media_get_mrl( libvlc_media_t * p_md, libvlc_media_get_mrl( libvlc_media_t * p_md )
libvlc_exception_t * p_e )
{ {
VLC_UNUSED(p_e); assert( p_md );
return input_item_GetURI( p_md->p_input_item ); return input_item_GetURI( p_md->p_input_item );
} }
...@@ -446,13 +441,11 @@ libvlc_media_get_mrl( libvlc_media_t * p_md, ...@@ -446,13 +441,11 @@ libvlc_media_get_mrl( libvlc_media_t * p_md,
* Getter for meta information * Getter for meta information
**************************************************************************/ **************************************************************************/
char * libvlc_media_get_meta( libvlc_media_t *p_md, char *libvlc_media_get_meta( libvlc_media_t *p_md, libvlc_meta_t e_meta )
libvlc_meta_t e_meta,
libvlc_exception_t *p_e )
{ {
char * psz_meta; char * psz_meta;
VLC_UNUSED(p_e);
assert( p_md );
/* XXX: locking */ /* XXX: locking */
preparse_if_needed( p_md ); preparse_if_needed( p_md );
...@@ -483,10 +476,9 @@ char * libvlc_media_get_meta( libvlc_media_t *p_md, ...@@ -483,10 +476,9 @@ char * libvlc_media_get_meta( libvlc_media_t *p_md,
**************************************************************************/ **************************************************************************/
libvlc_state_t libvlc_state_t
libvlc_media_get_state( libvlc_media_t *p_md, libvlc_media_get_state( libvlc_media_t *p_md )
libvlc_exception_t *p_e )
{ {
VLC_UNUSED(p_e); assert( p_md );
return p_md->state; return p_md->state;
} }
...@@ -496,8 +488,7 @@ libvlc_media_get_state( libvlc_media_t *p_md, ...@@ -496,8 +488,7 @@ libvlc_media_get_state( libvlc_media_t *p_md,
void void
libvlc_media_set_state( libvlc_media_t *p_md, libvlc_media_set_state( libvlc_media_t *p_md,
libvlc_state_t state, libvlc_state_t state )
libvlc_exception_t *p_e )
{ {
libvlc_event_t event; libvlc_event_t event;
VLC_UNUSED(p_e); VLC_UNUSED(p_e);
...@@ -516,11 +507,8 @@ libvlc_media_set_state( libvlc_media_t *p_md, ...@@ -516,11 +507,8 @@ libvlc_media_set_state( libvlc_media_t *p_md,
* subitems * subitems
**************************************************************************/ **************************************************************************/
libvlc_media_list_t * libvlc_media_list_t *
libvlc_media_subitems( libvlc_media_t * p_md, libvlc_media_subitems( libvlc_media_t * p_md )
libvlc_exception_t * p_e )
{ {
VLC_UNUSED(p_e);
if( p_md->p_subitems ) if( p_md->p_subitems )
libvlc_media_list_retain( p_md->p_subitems ); libvlc_media_list_retain( p_md->p_subitems );
return p_md->p_subitems; return p_md->p_subitems;
...@@ -530,10 +518,9 @@ libvlc_media_subitems( libvlc_media_t * p_md, ...@@ -530,10 +518,9 @@ libvlc_media_subitems( libvlc_media_t * p_md,
* event_manager * event_manager
**************************************************************************/ **************************************************************************/
libvlc_event_manager_t * libvlc_event_manager_t *
libvlc_media_event_manager( libvlc_media_t * p_md, libvlc_media_event_manager( libvlc_media_t * p_md )
libvlc_exception_t * p_e )
{ {
VLC_UNUSED(p_e); assert( p_md );
return p_md->p_event_manager; return p_md->p_event_manager;
} }
...@@ -542,12 +529,11 @@ libvlc_media_event_manager( libvlc_media_t * p_md, ...@@ -542,12 +529,11 @@ libvlc_media_event_manager( libvlc_media_t * p_md,
* Get duration of media object (in ms) * Get duration of media object (in ms)
**************************************************************************/ **************************************************************************/
int64_t int64_t
libvlc_media_get_duration( libvlc_media_t * p_md, libvlc_media_get_duration( libvlc_media_t * p_md )
libvlc_exception_t * p_e )
{ {
VLC_UNUSED(p_e); assert( p_md );
if( !p_md || !p_md->p_input_item) if( !p_md->p_input_item )
{ {
libvlc_exception_raise( p_e ); libvlc_exception_raise( p_e );
libvlc_printerr( "No input item" ); libvlc_printerr( "No input item" );
...@@ -561,12 +547,12 @@ libvlc_media_get_duration( libvlc_media_t * p_md, ...@@ -561,12 +547,12 @@ libvlc_media_get_duration( libvlc_media_t * p_md,
* Get preparsed status for media object. * Get preparsed status for media object.
**************************************************************************/ **************************************************************************/
int int
libvlc_media_is_preparsed( libvlc_media_t * p_md, libvlc_media_is_preparsed( libvlc_media_t * p_md )
libvlc_exception_t * p_e )
{ {
assert( p_md );
VLC_UNUSED(p_e); VLC_UNUSED(p_e);
if( !p_md || !p_md->p_input_item) if( !p_md->p_input_item )
{ {
libvlc_exception_raise( p_e ); libvlc_exception_raise( p_e );
libvlc_printerr( "No input item" ); libvlc_printerr( "No input item" );
...@@ -582,16 +568,10 @@ libvlc_media_is_preparsed( libvlc_media_t * p_md, ...@@ -582,16 +568,10 @@ libvlc_media_is_preparsed( libvlc_media_t * p_md,
* an native object that references a libvlc_media_t pointer * an native object that references a libvlc_media_t pointer
**************************************************************************/ **************************************************************************/
void void
libvlc_media_set_user_data( libvlc_media_t * p_md, libvlc_media_set_user_data( libvlc_media_t * p_md, void * p_new_user_data )
void * p_new_user_data,
libvlc_exception_t * p_e )
{ {
VLC_UNUSED(p_e); assert( p_md );
if( p_md )
{
p_md->p_user_data = p_new_user_data; p_md->p_user_data = p_new_user_data;
}
} }
/************************************************************************** /**************************************************************************
...@@ -600,9 +580,8 @@ libvlc_media_set_user_data( libvlc_media_t * p_md, ...@@ -600,9 +580,8 @@ libvlc_media_set_user_data( libvlc_media_t * p_md,
* an native object that references a libvlc_media_t pointer * an native object that references a libvlc_media_t pointer
**************************************************************************/ **************************************************************************/
void * void *
libvlc_media_get_user_data( libvlc_media_t * p_md, libvlc_media_get_user_data( libvlc_media_t * p_md )
libvlc_exception_t * p_e )
{ {
VLC_UNUSED(p_e); assert( p_md );
return p_md ? p_md->p_user_data : NULL; return p_md->p_user_data;
} }
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