p_mlp->i_refcount = 1;
vlc_mutex_init(&p_mlp->object_lock);
vlc_mutex_init(&p_mlp->mp_callback_lock);
- libvlc_event_manager_register_event_type(p_mlp->p_event_manager, libvlc_MediaListPlayerNextItemSet);
+ libvlc_event_manager_register_event_type( p_mlp->p_event_manager,
+ libvlc_MediaListPlayerNextItemSet );
+ libvlc_event_manager_register_event_type( p_mlp->p_event_manager,
+ libvlc_MediaListPlayerStopped );
p_mlp->e_playback_mode = libvlc_playback_mode_default;
return p_mlp;
free(p_mlp->current_playing_item_path);
p_mlp->current_playing_item_path = NULL;
+
+ /* Send the event */
+ libvlc_event_t event;
+ event.type = libvlc_MediaListPlayerStopped;
+ libvlc_event_send(p_mlp->p_event_manager, &event);
}
/**************************************************************************