From: Nirbheek Chauhan Date: Thu, 14 Jan 2016 22:27:45 +0000 (+0530) Subject: osxaudio: break as soon as the device is found X-Git-Tag: 1.10.4~638 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2706a35ebe4b0c44a6c668337be7d5b264da654a;p=platform%2Fupstream%2Fgst-plugins-good.git osxaudio: break as soon as the device is found No need to loop further if there's no side-effects for it --- diff --git a/sys/osxaudio/gstosxcoreaudiohal.c b/sys/osxaudio/gstosxcoreaudiohal.c index 36bd85e..4505c29 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; } }