Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a couple safety checks in search_albumart_files(). Should fix the sliding_puzzle crashes.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16225 a1c6a512-1295-4272-9138-f99709370657

+5 -1
+5 -1
apps/recorder/albumart.c
··· 115 115 return false; 116 116 117 117 trackname = id3->path; 118 + 119 + if (strcmp(trackname, "No file!") == 0) 120 + return false; 121 + 118 122 strip_filename(dir, sizeof(dir), trackname); 119 123 dirlen = strlen(dir); 120 124 albumlen = id3->album ? strlen(id3->album) : 0; ··· 142 146 found = file_exists(path); 143 147 } 144 148 145 - if (!found) 149 + if (!found && id3->artist && id3->album) 146 150 { 147 151 /* look in the albumart subdir of .rockbox */ 148 152 snprintf(path, sizeof(path),