From: Lars Op den Kamp Date: Mon, 21 Nov 2011 22:36:26 +0000 (+0100) Subject: cec: pass the menu request command to listeners when it's not handled X-Git-Tag: upstream/2.2.0~1^2~44^2~120 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a483a2fb27b9adbd48b114b5c9f25977dee12ea2;p=deb_libcec.git cec: pass the menu request command to listeners when it's not handled --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 3c3d841..7e5c872 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -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);