summaryrefslogtreecommitdiff
path: root/src/mixer/mixer.c
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-04-13 17:01:47 -0400
committerAndrew Opalach <andrew@akon.city> 2026-04-13 17:01:47 -0400
commit77b54c35bf9587450cd636e0d7df37e190e28bfb (patch)
treea290efdd8b09066847199f3f52a32be70d24ef51 /src/mixer/mixer.c
parent20617b9c80cf8d8051ecdb53a2c22f68c012f21b (diff)
downloadcamu-77b54c35bf9587450cd636e0d7df37e190e28bfb.tar.gz
camu-77b54c35bf9587450cd636e0d7df37e190e28bfb.tar.bz2
camu-77b54c35bf9587450cd636e0d7df37e190e28bfb.zip
Smaller stuff that went uncommitted
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/mixer/mixer.c')
-rw-r--r--src/mixer/mixer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mixer/mixer.c b/src/mixer/mixer.c
index c578689..9f589cc 100644
--- a/src/mixer/mixer.c
+++ b/src/mixer/mixer.c
@@ -200,7 +200,7 @@ void camu_mixer_add_buffer(struct camu_mixer *mixer, struct camu_audio_buffer *b
al_array_foreach(mixer->add_queue, i, queued) {
if (queued == buf) {
nn_mutex_unlock(&mixer->mutex);
- return;
+ al_assert_and_return();
}
}
al_array_foreach_rev(mixer->rem_queue, i, queued) {
@@ -320,5 +320,7 @@ void camu_mixer_close(struct camu_mixer *mixer)
al_array_free(mixer->rem_queue);
nn_mutex_destroy(&mixer->mutex);
#endif
- mixer->audio->free(&mixer->audio);
+ if (mixer->audio) {
+ mixer->audio->free(&mixer->audio);
+ }
}