From: Lars Op den Kamp Date: Sat, 1 Oct 2011 15:39:00 +0000 (+0200) Subject: cec: check whether the specified path in the parameter of CCECDetect::FindDevices... X-Git-Tag: upstream/2.2.0~1^2~311 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b824eadc75ed8633da5d7107ef05fdf419b4d663;p=deb_libcec.git cec: check whether the specified path in the parameter of CCECDetect::FindDevices() matches the devices that are found (if that parameter is provided) --- diff --git a/src/lib/CECDetect.cpp b/src/lib/CECDetect.cpp index 002d513..a8aa7e1 100644 --- a/src/lib/CECDetect.cpp +++ b/src/lib/CECDetect.cpp @@ -212,6 +212,9 @@ int CCECDetect::FindDevices(vector &deviceList, const char *strDevic if(!bDetailResult) continue; + if (strDevicePath && strcmp(strDevicePath, devicedetailData->DevicePath) != 0) + continue; + CStdString strVendorId; CStdString strProductId; CStdString strTmp(devicedetailData->DevicePath);