]> git.sesse.net Git - vlc/blobdiff - modules/control/hotkeys.c
vlc_plugin: fix non-LGPL plugins meta infos
[vlc] / modules / control / hotkeys.c
index a2164cf3a05678f3a51b93aa6043e33e03ca21c4..49b9c4d8b1e4ea2c78616cf1896c667ea25d3149 100644 (file)
@@ -30,6 +30,7 @@
 # include "config.h"
 #endif
 
+#define VLC_MODULE_LICENSE VLC_LICENSE_GPL_2_PLUS
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_interface.h>
@@ -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: