[vlc-devel] [PATCH 1/2] hotkeys: Added OSD messages for toggle repeat playlist action.

Rémi Denis-Courmont remi at remlab.net
Tue Apr 23 12:17:10 CEST 2013


On Tue, 23 Apr 2013 12:15:09 +0200, Zoran Turalija
<zoran.turalija at gmail.com> wrote:
> Resolves part of ticket #7933
> ---
>  modules/control/hotkeys.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
> index 8589f3f..cfec996 100644
> --- a/modules/control/hotkeys.c
> +++ b/modules/control/hotkeys.c
> @@ -186,8 +186,13 @@ static int PutAction( intf_thread_t *p_intf, int
> i_action )
>              break;
>  
>          case ACTIONID_RANDOM:
> +        {
>              var_ToggleBool( p_playlist, "random" );
> +            DisplayMessage( p_vout, _("Random: %s"),
> +                            vlc_gettext( var_GetBool( p_playlist,
> "random" )
> +                            ? N_("On") : N_("Off") ) );

No. You should get the current state from var_ToogleBool.

>              break;
> +        }
>  
>          case ACTIONID_NEXT:
>              DisplayMessage( p_vout, _("Next") );
> -- 
> 1.7.10.4

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list