From 7e77080f453850ad79e0704961e093308e98fd64 Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 6 May 2021 21:14:12 +0200 Subject: [PATCH] mcd, fix crash when unloading cd while playing audio --- pico/cd/cdd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pico/cd/cdd.c b/pico/cd/cdd.c index fd78c357..00e12bad 100644 --- a/pico/cd/cdd.c +++ b/pico/cd/cdd.c @@ -444,6 +444,9 @@ int cdd_unload(void) { int i; + /* stop audio streaming */ + Pico_mcd->cdda_stream = NULL; + /* close CD tracks */ if (cdd.toc.tracks[0].fd) { -- 2.39.5