[vlc-commits] hotkeys: Added OSD messages for toggle repeat playlist action.
Zoran Turalija
git at videolan.org
Tue Apr 23 21:56:17 CEST 2013
vlc | branch: master | Zoran Turalija <zoran.turalija at gmail.com> | Tue Apr 23 10:50:31 2013 +0200| [0dc62cd19df05a17c2537d16cc23ec071e983ced] | committer: Rémi Denis-Courmont
hotkeys: Added OSD messages for toggle repeat playlist action.
Resolves part of ticket #7933
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0dc62cd19df05a17c2537d16cc23ec071e983ced
---
modules/control/hotkeys.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index 8589f3f..be13004 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -186,8 +186,12 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
break;
case ACTIONID_RANDOM:
- var_ToggleBool( p_playlist, "random" );
+ {
+ const bool state = var_ToggleBool( p_playlist, "random" );
+ DisplayMessage( p_vout, _("Random: %s"),
+ vlc_gettext( state ? N_("On") : N_("Off") ) );
break;
+ }
case ACTIONID_NEXT:
DisplayMessage( p_vout, _("Next") );
More information about the vlc-commits
mailing list