Commit 597d48c3 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Qt: tell that vlc processed the media keys

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 636b4a6bd4ac196c8ad6b09fc738ea8e0535c6c5)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b1d6e1fc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment