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:
parent
4af9526ab5
commit
82e1a1f1ae
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue