[vlc-devel] [PATCH 1/2] hotkeys: Added OSD messages for toggle repeat playlist action.
Zoran Turalija
zoran.turalija at gmail.com
Tue Apr 23 13:01:03 CEST 2013
On Tue, Apr 23, 2013 at 12:17:10PM +0200, Rémi Denis-Courmont wrote:
> 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.
Indeed. In attach is correct patch. Thanks...
--
Kind regards,
Zoran Turalija
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hotkeys-Added-OSD-messages-for-toggle-repeat-playlis.patch
Type: text/x-diff
Size: 1045 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130423/eff6a4d9/attachment.patch>
More information about the vlc-devel
mailing list