osxaudio: break as soon as the device is found
No need to loop further if there's no side-effects for it
This commit is contained in:
parent
6b760ead2a
commit
2706a35ebe
@ -1245,6 +1245,7 @@ gst_core_audio_select_device_impl (GstCoreAudio * core_audio)
|
||||
for (i = 0; i < ndevices; i++) {
|
||||
if (device_id == devices[i]) {
|
||||
res = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user