From b824eadc75ed8633da5d7107ef05fdf419b4d663 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sat, 1 Oct 2011 17:39:00 +0200 Subject: [PATCH] cec: check whether the specified path in the parameter of CCECDetect::FindDevices() matches the devices that are found (if that parameter is provided) --- src/lib/CECDetect.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.34.1