mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 03:56:16 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue