[vlc-commits] commit: Qt: tell that vlc processed the media keys (Hannes Domani )
git at videolan.org
git at videolan.org
Fri Nov 19 03:04:31 CET 2010
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed Nov 17 12:46:42 2010 +0100| [636b4a6bd4ac196c8ad6b09fc738ea8e0535c6c5] | committer: Jean-Baptiste Kempf
Qt: tell that vlc processed the media keys
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=636b4a6bd4ac196c8ad6b09fc738ea8e0535c6c5
---
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 1816353..5c8b0f1 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