X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fimplementations%2FPHCommandHandler.cpp;h=a4e7129d44b22780b3523c19abb8978cd4ab8eb9;hb=6d5033117aacb1be07d93b99a82115146af4d623;hp=0d9f010800b5775fb905f717cb1109453eb9b6e6;hpb=ebcedb051be7d8e1e19ecd3f0aa164baae252400;p=deb_libcec.git diff --git a/src/lib/implementations/PHCommandHandler.cpp b/src/lib/implementations/PHCommandHandler.cpp index 0d9f010..a4e7129 100644 --- a/src/lib/implementations/PHCommandHandler.cpp +++ b/src/lib/implementations/PHCommandHandler.cpp @@ -129,9 +129,8 @@ bool CPHCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = fa int CPHCommandHandler::HandleUserControlPressed(const cec_command& command) { - // tv keeps sending these until a button is pressed - if (command.parameters[0] == CEC_USER_CONTROL_CODE_DISPLAY_INFORMATION && - m_iLastKeyCode == CEC_USER_CONTROL_CODE_DISPLAY_INFORMATION) + // TV sometimes keeps sending key presses without releases + if (m_iLastKeyCode == command.parameters[0]) return COMMAND_HANDLED; m_iLastKeyCode = command.parameters[0];