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

ncurses: use vlc_LogSet()

parent 9ee42fca
......@@ -191,7 +191,6 @@ struct intf_sys_t
int box_start; // first line of box displayed
int box_idx; // selected line
msg_subscription_t sub; // message bank subscription
struct
{
int type;
......@@ -1793,7 +1792,7 @@ static int Open(vlc_object_t *p_this)
vlc_mutex_init(&sys->pl_lock);
sys->verbosity = var_InheritInteger(intf, "verbose");
vlc_Subscribe(&sys->sub, MsgCallback, sys);
vlc_LogSet(intf->p_libvlc, MsgCallback, sys);
sys->box_type = BOX_PLAYLIST;
sys->plidx_follow = true;
......@@ -1850,7 +1849,7 @@ static void Close(vlc_object_t *p_this)
endwin(); /* Close the ncurses interface */
vlc_Unsubscribe(&sys->sub);
vlc_LogSet(p_this->p_libvlc, NULL, NULL);
vlc_mutex_destroy(&sys->msg_lock);
vlc_mutex_destroy(&sys->pl_lock);
for(unsigned i = 0; i < sizeof sys->msgs / sizeof *sys->msgs; i++) {
......
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