cec: removed the old SetVendorId() from the header and fix device class after faa9cb5...
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index 122c4be1c51e2eaedbc681b9c5b2a163992e67c2..65ec3e5ce2073f161c07f67b6711cfd086cdfeea 100644 (file)
@@ -397,7 +397,6 @@ CCECBusDevice *CCECCommandHandler::GetDeviceByPhysicalAddress(uint16_t iPhysical
   return device;
 }
 
-
 void CCECCommandHandler::SetVendorId(const cec_command &command)
 {
   if (command.parameters.size < 3)
@@ -412,5 +411,5 @@ void CCECCommandHandler::SetVendorId(const cec_command &command)
 
   CCECBusDevice *device = GetDevice((cec_logical_address) command.initiator);
   if (device)
-    device->SetVendorId(iVendorId, iVendorId);
+    device->SetVendorId(iVendorId, command.parameters.size > 3 ? command.parameters[3] : 0);
 }