[vlc-commits] commit: Qt: tell that vlc processed the media keys (Hannes Domani )

git at videolan.org git at videolan.org
Sat Dec 4 20:31:48 CET 2010


vlc/vlc-1.1 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed Nov 17 12:46:42 2010 +0100| [597d48c31f234e98c17432085b67606cb4e6d51d] | committer: Jean-Baptiste Kempf 

Qt: tell that vlc processed the media keys

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 636b4a6bd4ac196c8ad6b09fc738ea8e0535c6c5)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=597d48c31f234e98c17432085b67606cb4e6d51d
---

 modules/gui/qt4/main_interface_win32.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/main_interface_win32.cpp b/modules/gui/qt4/main_interface_win32.cpp
index ddc6c1c..5e13a0d 100644
--- a/modules/gui/qt4/main_interface_win32.cpp
+++ b/modules/gui/qt4/main_interface_win32.cpp
@@ -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;



More information about the vlc-commits mailing list