From: Lars Op den Kamp Date: Fri, 9 Nov 2012 15:39:34 +0000 (+0100) Subject: fixed - only change the type of the client to 'playback device' instead of 'recorder... X-Git-Tag: upstream/2.2.0~1^2~12^2~35 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=600d5e54c86d494933fac1fe4a9b2826b8008280 fixed - only change the type of the client to 'playback device' instead of 'recorder' for panasonic if the TV is a panasonic. issue #84 --- diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index b7cdb7a..f57925b 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -79,10 +79,10 @@ bool CVLCommandHandler::InitHandler(void) primary->SetVendorId(CEC_VENDOR_PANASONIC); primary->ReplaceHandler(false); } - } - if (primary->GetType() == CEC_DEVICE_TYPE_RECORDING_DEVICE) - return m_processor->GetPrimaryClient()->ChangeDeviceType(CEC_DEVICE_TYPE_RECORDING_DEVICE, CEC_DEVICE_TYPE_PLAYBACK_DEVICE); + if (primary->GetType() == CEC_DEVICE_TYPE_RECORDING_DEVICE) + return m_processor->GetPrimaryClient()->ChangeDeviceType(CEC_DEVICE_TYPE_RECORDING_DEVICE, CEC_DEVICE_TYPE_PLAYBACK_DEVICE); + } } return CCECCommandHandler::InitHandler();