1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

PhysicalTopologySource filters for garbage BlockDeviceConnection

This commit is contained in:
Rachel Susser 2018-06-11 10:16:00 +01:00 committed by hogliux
parent 4af9526ab5
commit 82e1a1f1ae

View file

@ -767,6 +767,10 @@ struct PhysicalTopologySource::Internal
BlockDeviceConnection dc;
dc.device1 = getDeviceIDFromIndex (c.device1);
dc.device2 = getDeviceIDFromIndex (c.device2);
if (dc.device1 <= 0 || dc.device2 <= 0)
continue;
dc.connectionPortOnDevice1 = convertConnectionPort (dc.device1, c.port1);
dc.connectionPortOnDevice2 = convertConnectionPort (dc.device2, c.port2);