From f1bfefbbd412eaa0fe89f5afb3c11b427dc2446a Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Mon, 25 Sep 2023 11:18:27 +0200 Subject: [PATCH] Actually use the return value in initialize_with_format callback call. --- src/cubeb_opensl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cubeb_opensl.cpp b/src/cubeb_opensl.cpp index 542d4523..171a32e2 100644 --- a/src/cubeb_opensl.cpp +++ b/src/cubeb_opensl.cpp @@ -985,9 +985,7 @@ initialize_with_format(cubeb_stream * stm, cubeb_stream_params * params, format_sample_rate = &pcm_format.samplesPerSec; } - func(format, format_sample_rate, using_floats); - - return CUBEB_OK; + return func(format, format_sample_rate, using_floats); } static int