mcd, fix crash when unloading cd while playing audio
authorkub <derkub@gmail.com>
Thu, 6 May 2021 19:14:12 +0000 (21:14 +0200)
committerkub <derkub@gmail.com>
Thu, 6 May 2021 19:22:31 +0000 (21:22 +0200)
pico/cd/cdd.c

index fd78c35..00e12ba 100644 (file)
@@ -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)
     {