[vlc-devel] commit: ncurses: Properly update on item-change variable callback. ( Pierre d'Herbemont )
git version control
git at videolan.org
Sat Jun 14 16:12:53 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jun 14 16:11:42 2008 +0200| [86c84715d3aff267e7a9c80854ec5394bdd8cfc5]
ncurses: Properly update on item-change variable callback.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86c84715d3aff267e7a9c80854ec5394bdd8cfc5
---
modules/gui/ncurses.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 9a5cab8..cba2405 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -399,6 +399,7 @@ static void Run( intf_thread_t *p_intf )
PlaylistRebuild( p_intf );
var_AddCallback( p_playlist, "intf-change", PlaylistChanged, p_intf );
var_AddCallback( p_playlist, "item-append", PlaylistChanged, p_intf );
+ var_AddCallback( p_playlist, "item-change", PlaylistChanged, p_intf );
while( !intf_ShouldDie( p_intf ) )
{
@@ -460,6 +461,7 @@ static void Run( intf_thread_t *p_intf )
}
var_DelCallback( p_playlist, "intf-change", PlaylistChanged, p_intf );
var_DelCallback( p_playlist, "item-append", PlaylistChanged, p_intf );
+ var_DelCallback( p_playlist, "item-change", PlaylistChanged, p_intf );
}
/* following functions are local */
More information about the vlc-devel
mailing list