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:
Nirbheek Chauhan 2016-01-15 03:57:45 +05:30 committed by Tim-Philipp Müller
parent 6b760ead2a
commit 2706a35ebe

View file

@ -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;
}
}