[vlc-commits] ncurses: use vlc_LogSet()

Rémi Denis-Courmont git at videolan.org
Mon Mar 18 22:15:27 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 18 22:22:10 2013 +0200| [12820072c93d2a0595606df904015214d9aceed2] | committer: Rémi Denis-Courmont

ncurses: use vlc_LogSet()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12820072c93d2a0595606df904015214d9aceed2
---

 modules/gui/ncurses.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index d3f7755..6b46bbb 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -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++) {



More information about the vlc-commits mailing list