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.

[Bug Fix] open_plugin.c update checksum check for spinning disks

Lang_id keys take LANG_LAST_INDEX_IN_ARRAY for the checksum
spinning disks did not have the code to do so

Change-Id: I617e1a5462d8d6c4830a9b59171bdd7167d5e7a1

authored by

William Wilgus and committed by
William Wilgus
eaf71774 c6c1d624

+5 -1
+5 -1
apps/open_plugin.c
··· 155 155 /* Only read the hash lang id and checksum */ 156 156 uint32_t hash_langid_csum[3] = {0}; 157 157 const off_t hlc_sz = sizeof(hash_langid_csum); 158 + 159 + uint32_t csum = open_plugin_csum + 160 + (lang_id <= OPEN_PLUGIN_LANG_INVALID ? 0 : LANG_LAST_INDEX_IN_ARRAY); 161 + 158 162 while (read(fd, &hash_langid_csum, hlc_sz) == hlc_sz) 159 163 { 160 164 if ((hash_langid_csum[0] == hash || (int32_t)hash_langid_csum[1] == lang_id) && 161 - hash_langid_csum[2] == open_plugin_csum) 165 + hash_langid_csum[2] == csum) 162 166 { 163 167 logf("OP update *Entry Exists* hash: %x langid: %d", 164 168 hash_langid_csum[0], (int32_t)hash_langid_csum[1]);