[vlc-commits] commit: ncurses: fix messages display ( Rafaël Carré )
git at videolan.org
git at videolan.org
Sat Oct 30 14:49:14 CEST 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sat Oct 30 14:48:19 2010 +0200| [669862ccd3915bab58cc133a347baf735434cf7b] | committer: Rafaël Carré
ncurses: fix messages display
- use libvlc verbosity
- reset default color after having displayed the messages
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=669862ccd3915bab58cc133a347baf735434cf7b
---
modules/gui/ncurses.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 70ef836..43f57a0 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1051,7 +1051,10 @@ static int DrawMessages(intf_thread_t *p_intf)
if (i == p_sys->i_msgs) /* did we loop around the ring buffer ? */
break;
}
+
vlc_mutex_unlock(&p_sys->msg_lock);
+ if (p_sys->b_color)
+ color_set(C_DEFAULT, NULL);
return l;
}
@@ -1830,6 +1833,8 @@ static int Open(vlc_object_t *p_this)
p_sys->i_msgs = 0;
memset(p_sys->msgs, 0, sizeof p_sys->msgs);
p_sys->p_sub = msg_Subscribe(p_intf->p_libvlc, MsgCallback, msg_cb_data);
+ msg_SubscriptionSetVerbosity(p_sys->p_sub,
+ var_GetInteger(p_intf->p_libvlc, "verbose"));
p_sys->i_box_type = BOX_PLAYLIST;
p_sys->b_plidx_follow = true;
More information about the vlc-commits
mailing list