cec: don't get the vendor id first in 'scan'
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 7 Dec 2011 22:55:50 +0000 (23:55 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 7 Dec 2011 22:55:50 +0000 (23:55 +0100)
src/testclient/main.cpp

index e1d0ec849afae866d19c0f29fd62f9649c7d28a7..d1ca8c19616a3b43446f5a0494588affd9e1c0eb 100644 (file)
@@ -720,9 +720,9 @@ bool ProcessCommandSCAN(ICECAdapter *parser, const string &command, string &argu
     {
       if (addresses[iPtr])
       {
+        uint64_t iVendorId        = parser->GetDeviceVendorId((cec_logical_address)iPtr);
         bool     bActive          = parser->IsActiveSource((cec_logical_address)iPtr);
         uint16_t iPhysicalAddress = parser->GetDevicePhysicalAddress((cec_logical_address)iPtr);
-        uint64_t iVendorId        = parser->GetDeviceVendorId((cec_logical_address)iPtr);
         cec_version iCecVersion   = parser->GetDeviceCecVersion((cec_logical_address)iPtr);
         cec_power_status power    = parser->GetDevicePowerStatus((cec_logical_address)iPtr);
         cec_osd_name osdName      = parser->GetOSDName((cec_logical_address)iPtr);