cec: check whether the specified path in the parameter of CCECDetect::FindDevices...
authorLars Op den Kamp <lars@opdenkamp.eu>
Sat, 1 Oct 2011 15:39:00 +0000 (17:39 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sat, 1 Oct 2011 15:39:00 +0000 (17:39 +0200)
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);