From: Lars Op den Kamp Date: Sun, 6 Nov 2011 12:48:49 +0000 (+0100) Subject: cec: switch to panasonic specific cec implementation if a panasonic device was detected X-Git-Tag: upstream/2.2.0~1^2~102 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1162157634cc45c1b30b3ae7b7c049e717d06375;p=deb_libcec.git cec: switch to panasonic specific cec implementation if a panasonic device was detected --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 66916d5..c3e45ec 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -35,6 +35,7 @@ #include "../implementations/ANCommandHandler.h" #include "../implementations/CECCommandHandler.h" #include "../implementations/SLCommandHandler.h" +#include "../implementations/VLCommandHandler.h" #include "../platform/timeutils.h" using namespace CEC; @@ -319,6 +320,13 @@ void CCECBusDevice::SetVendorId(uint64_t iVendorId, uint8_t iVendorClass /* = 0 m_handler = new CSLCommandHandler(this); } break; + case CEC_VENDOR_PANASONIC: + if (m_handler->GetVendorId() != CEC_VENDOR_PANASONIC) + { + delete m_handler; + m_handler = new CVLCommandHandler(this); + } + break; default: if (m_handler->GetVendorId() != CEC_VENDOR_UNKNOWN) {