[vlc-devel] commit: hotkeys: use the return value of var_ToggleBool. ( Rémi Duraffort )
git version control
git at videolan.org
Wed Feb 10 09:23:19 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Feb 10 09:08:51 2010 +0100| [86e1fbd0efaa0ad10ba699a82b81fd24b083de1b] | committer: Rémi Duraffort
hotkeys: use the return value of var_ToggleBool.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86e1fbd0efaa0ad10ba699a82b81fd24b083de1b
---
modules/control/hotkeys.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index d3af55f..f50b995 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -869,13 +869,12 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
{
if( var_GetBool( p_input, "can-record" ) )
{
- const bool b_record = !var_GetBool( p_input, "record" );
+ const bool b_record = var_ToggleBool( p_input, "record" );
if( b_record )
vout_OSDMessage( p_intf, DEFAULT_CHAN, "%s", _("Recording") );
else
vout_OSDMessage( p_intf, DEFAULT_CHAN, "%s", _("Recording done") );
- var_SetBool( p_input, "record", b_record );
}
}
}
More information about the vlc-devel
mailing list