From: Lars Op den Kamp Date: Wed, 7 Dec 2011 22:55:50 +0000 (+0100) Subject: cec: don't get the vendor id first in 'scan' X-Git-Tag: upstream/2.2.0~1^2~44^2~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a98b2f2e462da89f64f987ac9e4e19d9e0a5e437;p=deb_libcec.git cec: don't get the vendor id first in 'scan' --- diff --git a/src/testclient/main.cpp b/src/testclient/main.cpp index e1d0ec8..d1ca8c1 100644 --- a/src/testclient/main.cpp +++ b/src/testclient/main.cpp @@ -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);