[vlc-devel] [PATCH] aout intf: implement functions to change volume and also show the appropriate osd text

David Fuhrmann david.fuhrmann at googlemail.com
Thu Feb 9 12:07:27 CET 2012


Am 09.02.2012 um 11:12 schrieb Rémi Denis-Courmont:

> On Thu, 9 Feb 2012 11:01:47 +0100, David Fuhrmann
> <david.fuhrmann at googlemail.com> wrote:
>> It looks to me that every hotkey is processed through "key-action" or
>> "key-pressed" and the respective functions in hotkeys.c, currently. Why
>> should this be forbidden for the volume hotkeys?
> 
> key-pressed takes a key code for processing. It can be used as is,
> although it should be reworked to support per-input hotkey handling.
> 
> key-action is used by hotkey event subscribers. It also needs to be
> reworked for the same reasons. Anyway, you want to emit an event, not
> subscribe to it, so this is not the thing.

I thought you can subscribe to a event by using 
var_AddCallback(…);
and emit an event by using
var_SetInteger( VLCIntf->p_libvlc, "key-action", 42 );

Then the latter would be that what I want.
Or is this wrong?

Best regards,
David


More information about the vlc-devel mailing list