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.

tagcache: Don't try to look up "deleted" filename entries

When a file is deleted from the database, the first character of that entry
is changed to \0. However the entry's length is not updated,
because the entry is still using space in the index.

When checking for deleted files, we were only keying on "length == 0"
instead of also checking to see if the entry itself starts with \0.

Change-Id: Ic00a0b29c3857c597ee5ff6ec01a5f4fd9633447

+1 -1
+1 -1
apps/tagcache.c
··· 503 503 return e_TAG_SIZEMISMATCH; 504 504 505 505 str_setlen(buf, tag_length); 506 - return tag_length > 0 ? e_SUCCESS : e_SUCCESS_LEN_ZERO; 506 + return (tag_length > 0 && *buf) ? e_SUCCESS : e_SUCCESS_LEN_ZERO; 507 507 } 508 508 509 509 static ssize_t read_index_entries(int fd, struct index_entry *buf, size_t count)