From 2706a35ebe4b0c44a6c668337be7d5b264da654a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 15 Jan 2016 03:57:45 +0530 Subject: [PATCH] osxaudio: break as soon as the device is found No need to loop further if there's no side-effects for it --- sys/osxaudio/gstosxcoreaudiohal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/osxaudio/gstosxcoreaudiohal.c b/sys/osxaudio/gstosxcoreaudiohal.c index 36bd85efd1..4505c29893 100644 --- a/sys/osxaudio/gstosxcoreaudiohal.c +++ b/sys/osxaudio/gstosxcoreaudiohal.c @@ -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; } }