fixed crash when no dev detected 3

This commit is contained in:
Ryzerth 2020-07-20 17:34:05 +02:00
parent e8ae20232a
commit 1a42421d92

View File

@ -237,7 +237,7 @@ void drawWindow() {
}
}
if (srId != _srId) {
if (srId != _srId && soapy.devList.size() > 0) {
_srId = srId;
sampleRate = soapy.sampleRates[srId];
printf("Setting sample rate to %f\n", (float)soapy.sampleRates[srId]);