From: kub Date: Thu, 6 May 2021 19:14:12 +0000 (+0200) Subject: mcd, fix crash when unloading cd while playing audio X-Git-Tag: v2.00~536 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e77080f453850ad79e0704961e093308e98fd64;p=picodrive.git mcd, fix crash when unloading cd while playing audio --- 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) {