[vlc-devel] [PATCH 2/2] Add Brightness control

Rémi Denis-Courmont remi at remlab.net
Mon Nov 18 17:00:31 CET 2013


Le dimanche 17 novembre 2013, 19:40:49 Edward Wang a écrit :
> On 2013-11-17 19:20, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> > Close #3792
> > ---
> > 
> >   modules/control/hotkeys.c | 20 ++++++++++++++++++++
> >   1 file changed, 20 insertions(+)
> > 
> > diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
> > index e23156e..c409c24 100644
> > --- a/modules/control/hotkeys.c
> > +++ b/modules/control/hotkeys.c
> > @@ -1036,6 +1036,26 @@ static int PutAction( intf_thread_t *p_intf, int
> > i_action )> 
> >               if( p_vout && vout_OSDEpg( p_vout, input_GetItem( p_input )
> >               ) )
> >               
> >                   DisplayPosition( p_intf, p_vout, p_input );
> >               
> >               break;
> > 
> > +
> > +        case ACTIONID_BRIGHTNESS_UP:
> > +        case ACTIONID_BRIGHTNESS_DOWN:
> > +            if( p_vout )
> > +            {
> > +                vout_EnableFilter( p_vout, "adjust", 1, false );
> > +
> > +                vlc_object_t *p_adjust = vlc_object_find_name( p_vout,
> > "adjust" );
> Wasn't this function supposed to be deprecated?

Yes of course it is and the patch is wrong.

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list