Commit 86e1fbd0 authored by Rémi Duraffort's avatar Rémi Duraffort

hotkeys: use the return value of var_ToggleBool.

parent 9ee5f674
...@@ -869,13 +869,12 @@ static int PutAction( intf_thread_t *p_intf, int i_action ) ...@@ -869,13 +869,12 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
{ {
if( var_GetBool( p_input, "can-record" ) ) 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 ) if( b_record )
vout_OSDMessage( p_intf, DEFAULT_CHAN, "%s", _("Recording") ); vout_OSDMessage( p_intf, DEFAULT_CHAN, "%s", _("Recording") );
else else
vout_OSDMessage( p_intf, DEFAULT_CHAN, "%s", _("Recording done") ); vout_OSDMessage( p_intf, DEFAULT_CHAN, "%s", _("Recording done") );
var_SetBool( p_input, "record", b_record );
} }
} }
} }
......
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