cec: check whether the specified path in the parameter of CCECDetect::FindDevices...
[deb_libcec.git] / src / lib / CECDetect.cpp
index 002d513d76c0acaeb40c633e625290bb9e96ac89..a8aa7e1cd531c29adbfb94572f8fabfdeaf06395 100644 (file)
@@ -212,6 +212,9 @@ int CCECDetect::FindDevices(vector<cec_device> &deviceList, const char *strDevic
     if(!bDetailResult)
       continue;
 
+    if (strDevicePath && strcmp(strDevicePath, devicedetailData->DevicePath) != 0)
+      continue;
+
     CStdString strVendorId;
     CStdString strProductId;
     CStdString strTmp(devicedetailData->DevicePath);