X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FCECCommandHandler.cpp;h=4446c9d3ed9b4de4ce04f1b2dcbbf6fbb38f944c;hb=88e5de6f3e5f0f0ff13f47490c364aa68b5e773c;hp=7e5c87224e8541e45e40305a0abdaafe0e849a34;hpb=a483a2fb27b9adbd48b114b5c9f25977dee12ea2;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 7e5c872..4446c9d 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -194,7 +194,7 @@ bool CCECCommandHandler::HandleActiveSource(const cec_command &command) bool CCECCommandHandler::HandleDeckControl(const cec_command &command) { CCECBusDevice *device = GetDevice(command.destination); - if (device && device->GetType() == CEC_DEVICE_TYPE_PLAYBACK_DEVICE && command.parameters.size > 0) + if (device && (device->GetType() == CEC_DEVICE_TYPE_PLAYBACK_DEVICE || device->GetType() == CEC_DEVICE_TYPE_RECORDING_DEVICE) && command.parameters.size > 0) { ((CCECPlaybackDevice *) device)->SetDeckControlMode((cec_deck_control_mode) command.parameters[0]); return true; @@ -249,7 +249,7 @@ bool CCECCommandHandler::HandleGiveAudioStatus(const cec_command &command) bool CCECCommandHandler::HandleGiveDeckStatus(const cec_command &command) { CCECBusDevice *device = GetDevice(command.destination); - if (device && device->GetType() == CEC_DEVICE_TYPE_PLAYBACK_DEVICE) + if (device && (device->GetType() == CEC_DEVICE_TYPE_PLAYBACK_DEVICE || device->GetType() == CEC_DEVICE_TYPE_RECORDING_DEVICE)) return ((CCECPlaybackDevice *) device)->TransmitDeckStatus(command.initiator); return false;