osxaudio: break as soon as the device is found
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 14 Jan 2016 22:27:45 +0000 (03:57 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 14 Jan 2016 22:32:09 +0000 (22:32 +0000)
No need to loop further if there's no side-effects for it

sys/osxaudio/gstosxcoreaudiohal.c

index 36bd85e..4505c29 100644 (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;
       }
     }