X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcontrol%2Fhotkeys.c;h=49b9c4d8b1e4ea2c78616cf1896c667ea25d3149;hb=56220f86120b3d7b7d8c7b2957befede19f669b6;hp=a2164cf3a05678f3a51b93aa6043e33e03ca21c4;hpb=32486e651c0473e3b6658f6bc8a905f5450abf42;p=vlc diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index a2164cf3a0..49b9c4d8b1 100644 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -30,6 +30,7 @@ # include "config.h" #endif +#define VLC_MODULE_LICENSE VLC_LICENSE_GPL_2_PLUS #include #include #include @@ -349,10 +350,8 @@ static int PutAction( intf_thread_t *p_intf, int i_action ) int state = var_GetInteger( p_input, "state" ); DisplayIcon( p_vout, state != PAUSE_S ? OSD_PAUSE_ICON : OSD_PLAY_ICON ); - playlist_Pause( p_playlist ); } - else - playlist_Play( p_playlist ); + playlist_TogglePause( p_playlist ); break; case ACTIONID_PLAY: