cec: don't send the power up/down keypress to listeners when in the initial device...
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 20 Dec 2011 21:54:19 +0000 (22:54 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 20 Dec 2011 21:54:19 +0000 (22:54 +0100)
src/lib/implementations/CECCommandHandler.cpp

index b43d2b0ed87262f9723ad1b349319f07f7b910a1..bdabcb74ea23dd99717f0893c968fcc3b0889e47 100644 (file)
@@ -577,7 +577,10 @@ bool CCECCommandHandler::HandleUserControlPressed(const cec_command &command)
           }
         }
       }
-      m_processor->SetCurrentButton((cec_user_control_code) command.parameters[0]);
+      else
+      {
+        m_processor->SetCurrentButton((cec_user_control_code) command.parameters[0]);
+      }
       return true;
     }
   }