From 8bfa02e2eabdebb2651287ef2cda18d86956abec Mon Sep 17 00:00:00 2001 From: zoltanvb <101990835+zoltanvb@users.noreply.github.com> Date: Wed, 21 Dec 2022 19:08:07 +0100 Subject: [PATCH] Fix for #14725 (#14750) Revert one modification in 0f24d524078c1f866a5200a25cec8779863bb46c that makes "add to mixer" options do nothing. --- audio/audio_driver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/audio/audio_driver.c b/audio/audio_driver.c index a82270cf21..1a2c19260e 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -1206,8 +1206,10 @@ bool audio_driver_mixer_add_stream(audio_mixer_stream_params_t *params) break; case AUDIO_MIXER_SLOT_SELECTION_AUTOMATIC: default: - return audio_driver_mixer_get_free_stream_slot( - &free_slot, params->stream_type); + if (!audio_driver_mixer_get_free_stream_slot( + &free_slot, params->stream_type)) + return false; + break; } if (params->state == AUDIO_STREAM_STATE_NONE)