]> git.sesse.net Git - vlc/commitdiff
Qt: tell that vlc processed the media keys
authorHannes Domani <ssbssa@yahoo.de>
Wed, 17 Nov 2010 11:46:42 +0000 (12:46 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 19 Nov 2010 02:03:58 +0000 (03:03 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/main_interface_win32.cpp

index 1816353c1da1717532419b8f4696331bc3acd4d1..5c8b0f1d7c0f4b668d07ae83e03b1f9f0fd9ddf3 100644 (file)
@@ -182,6 +182,7 @@ bool MainInterface::winEvent ( MSG * msg, long * result )
             break;
         case WM_APPCOMMAND:
             cmd = GET_APPCOMMAND_LPARAM(msg->lParam);
+            *result = TRUE;
             switch(cmd)
             {
                 case APPCOMMAND_MEDIA_PLAY_PAUSE:
@@ -213,8 +214,10 @@ bool MainInterface::winEvent ( MSG * msg, long * result )
                     break;
                 default:
                      msg_Dbg( p_intf, "unknown APPCOMMAND = %d", cmd);
+                     *result = FALSE;
                      break;
             }
+            if (*result) return true;
             break;
     }
     return false;