}
// Now check with the player if action can be handled.
- if (m_pPlayer != NULL && m_pPlayer->OnAction(action))
- return true;
+ if (g_windowManager.GetActiveWindow() == WINDOW_FULLSCREEN_VIDEO ||
+ g_windowManager.GetActiveWindow() == WINDOW_DIALOG_VIDEO_OSD && (action.GetID() == ACTION_NEXT_ITEM || action.GetID() == ACTION_PREV_ITEM || action.GetID() == ACTION_CHANNEL_UP || action.GetID() == ACTION_CHANNEL_DOWN))
+ {
+ if (m_pPlayer != NULL && m_pPlayer->OnAction(action))
+ return true;
+ }
// stop : stops playing current audio song
if (action.GetID() == ACTION_STOP)