cec: Correct handling CEC_USER_CONTROL_CODE_POWER
authorMark Kendall <mkendall@mythtv.org>
Wed, 21 Mar 2012 11:36:41 +0000 (11:36 +0000)
committerMark Kendall <mkendall@mythtv.org>
Wed, 21 Mar 2012 11:36:41 +0000 (11:36 +0000)
commite33e0d75ff34b5d4aa2b7c7922662ca666022f57
tree3b8740cdfd3aaafd1d75d62604224cd47a9f5300
parenta2f4c09c6681de9306f628d725ed3c04210c594a
cec: Correct handling CEC_USER_CONTROL_CODE_POWER

This ensures that the power code always operates as a toggle, depending
on the current state, and that SetCurrentButton is always called for a
valid user control code.

Bugzid: 570
src/lib/implementations/CECCommandHandler.cpp