Commit 7962ffa3 authored by Rémi Duraffort's avatar Rémi Duraffort

cosmetics.

parent 66e451b5
......@@ -352,11 +352,11 @@ libvlc_media_t * libvlc_media_new_as_node(
**************************************************************************/
void libvlc_media_add_option(
libvlc_media_t * p_md,
const char * ppsz_option,
const char * psz_option,
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, psz_option,
VLC_INPUT_OPTION_UNIQUE|VLC_INPUT_OPTION_TRUSTED );
}
......@@ -598,13 +598,5 @@ libvlc_media_get_user_data( libvlc_media_t * p_md,
libvlc_exception_t * p_e )
{
VLC_UNUSED(p_e);
if( p_md )
{
return p_md->p_user_data;
}
else
{
return NULL;
}
return p_md ? p_md->p_user_data : NULL;
}
......@@ -595,13 +595,13 @@ void libvlc_media_player_play( libvlc_media_player_t *p_mi,
var_Set( p_input_thread, "drawable-hwnd", val );
}
var_Create( p_input_thread, "drawable-nsobject", VLC_VAR_ADDRESS );
var_Create( p_input_thread, "drawable-nsobject", VLC_VAR_ADDRESS );
if( p_mi->drawable.nsobject != NULL )
{
vlc_value_t val = { .p_address = p_mi->drawable.nsobject };
var_Set( p_input_thread, "drawable-nsobject", val );
}
var_AddCallback( p_input_thread, "can-seek", input_seekable_changed, p_mi );
var_AddCallback( p_input_thread, "can-pause", input_pausable_changed, p_mi );
var_AddCallback( p_input_thread, "intf-event", input_event_changed, p_mi );
......
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