Commit 2706a35e authored by Nirbheek Chauhan's avatar Nirbheek Chauhan Committed by Tim-Philipp Müller
Browse files

osxaudio: break as soon as the device is found

No need to loop further if there's no side-effects for it
parent 6b760ead
...@@ -1245,6 +1245,7 @@ gst_core_audio_select_device_impl (GstCoreAudio * core_audio) ...@@ -1245,6 +1245,7 @@ gst_core_audio_select_device_impl (GstCoreAudio * core_audio)
for (i = 0; i < ndevices; i++) { for (i = 0; i < ndevices; i++) {
if (device_id == devices[i]) { if (device_id == devices[i]) {
res = TRUE; res = TRUE;
break;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment