Commit 0e7a548e authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: Compile fix for previous commit, plus warning removal.

parent 61ee17a8
...@@ -112,6 +112,7 @@ static void input_item_subitem_added( const vlc_event_t * p_event, ...@@ -112,6 +112,7 @@ static void input_item_subitem_added( const vlc_event_t * p_event,
static void input_item_changed( const vlc_event_t * p_event, static void input_item_changed( const vlc_event_t * p_event,
void * user_data ) void * user_data )
{ {
(void)p_event;
playlist_item_t * p_item = user_data; playlist_item_t * p_item = user_data;
var_SetInteger( p_item->p_playlist, var_SetInteger( p_item->p_playlist,
"item-change", p_item->i_id ); "item-change", p_item->i_id );
...@@ -128,11 +129,11 @@ static void install_input_item_observer( playlist_item_t * p_item ) ...@@ -128,11 +129,11 @@ static void install_input_item_observer( playlist_item_t * p_item )
p_item ); p_item );
vlc_event_attach( &p_item->p_input->event_manager, vlc_event_attach( &p_item->p_input->event_manager,
vlc_InputItemDurationChanged, vlc_InputItemDurationChanged,
input_item_meta_changed, input_item_changed,
p_item ); p_item );
vlc_event_attach( &p_item->p_input->event_manager, vlc_event_attach( &p_item->p_input->event_manager,
vlc_InputItemMetaChanged, vlc_InputItemMetaChanged,
input_item_meta_changed, input_item_changed,
p_item ); p_item );
} }
...@@ -140,11 +141,11 @@ static void uninstall_input_item_observer( playlist_item_t * p_item ) ...@@ -140,11 +141,11 @@ static void uninstall_input_item_observer( playlist_item_t * p_item )
{ {
vlc_event_detach( &p_item->p_input->event_manager, vlc_event_detach( &p_item->p_input->event_manager,
vlc_InputItemMetaChanged, vlc_InputItemMetaChanged,
input_item_meta_changed, input_item_changed,
p_item ); p_item );
vlc_event_detach( &p_item->p_input->event_manager, vlc_event_detach( &p_item->p_input->event_manager,
vlc_InputItemDurationChanged, vlc_InputItemDurationChanged,
input_item_meta_changed, input_item_changed,
p_item ); p_item );
vlc_event_detach( &p_item->p_input->event_manager, vlc_event_detach( &p_item->p_input->event_manager,
vlc_InputItemSubItemAdded, vlc_InputItemSubItemAdded,
......
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