From 408f37c1d9a48ea5e7437b5dfc2436b429e982be Mon Sep 17 00:00:00 2001 From: Ignacio Casal Quinteiro Date: Thu, 21 Apr 2022 12:47:31 +0200 Subject: [PATCH] osxaudio: remove usage of goto It is easier to follow the code without the goto now Part-of: --- .../gst-plugins-good/sys/osxaudio/gstosxcoreaudiohal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiohal.c b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiohal.c index b7f50a49c6..f5450d915d 100644 --- a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiohal.c +++ b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiohal.c @@ -1240,7 +1240,7 @@ gst_core_audio_select_device_impl (GstCoreAudio * core_audio) if (ndevices < 1) { GST_ERROR ("no audio output devices found"); g_free (devices); - goto done; + return res; } GST_DEBUG ("found %d audio device(s)", ndevices); @@ -1283,14 +1283,12 @@ gst_core_audio_select_device_impl (GstCoreAudio * core_audio) if (res && !_audio_device_is_alive (device_id, output)) { GST_ERROR ("Requested device not usable"); res = FALSE; - goto done; } } if (res) core_audio->device_id = device_id; -done: return res; }