cec: pass the menu request command to listeners when it's not handled
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 21 Nov 2011 22:36:26 +0000 (23:36 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 21 Nov 2011 22:36:26 +0000 (23:36 +0100)
src/lib/implementations/CECCommandHandler.cpp

index 3c3d84146cf96fc56b48da7c5b2e913542b0d6cd..7e5c87224e8541e45e40305a0abdaafe0e849a34 100644 (file)
@@ -91,7 +91,11 @@ bool CCECCommandHandler::HandleCommand(const cec_command &command)
       m_busDevice->GetProcessor()->AddCommand(command);
       break;
     case CEC_OPCODE_MENU_REQUEST:
-      HandleMenuRequest(command);
+      if (!HandleMenuRequest(command))
+      {
+        /* pass to listeners */
+        m_busDevice->GetProcessor()->AddCommand(command);
+      }
       break;
     case CEC_OPCODE_GIVE_DEVICE_POWER_STATUS:
       HandleGiveDevicePowerStatus(command);