Commit f64d8987 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_list_view.c: Register WillAdd/WillDelete events.

parent 667db96e
......@@ -201,6 +201,15 @@ libvlc_media_list_view_new( libvlc_media_list_t * p_mlist,
p_mlv->p_event_manager = libvlc_event_manager_new( p_mlist,
p_mlv->p_libvlc_instance, p_e );
libvlc_event_manager_register_event_type( p_mlv->p_event_manager,
libvlc_MediaListViewItemAdded, p_e );
libvlc_event_manager_register_event_type( p_mlv->p_event_manager,
libvlc_MediaListViewWillAddItem, p_e );
libvlc_event_manager_register_event_type( p_mlv->p_event_manager,
libvlc_MediaListViewItemDeleted, p_e );
libvlc_event_manager_register_event_type( p_mlv->p_event_manager,
libvlc_MediaListViewWillDeleteItem, p_e );
libvlc_media_list_retain( p_mlist );
p_mlv->p_mlist = p_mlist;
......
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