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.

Open_plugins.c bugfix address of packed struct element

helpful gcc warning after g#3895 change to packed struct

Change-Id: I89f765da94eeee14c606ea8ebaab5e219dceb2ac

+7 -2
+7 -2
apps/plugins/open_plugins.c
··· 296 296 { 297 297 int len; 298 298 uint32_t hash; 299 + uint32_t newhash; 299 300 char *pos = "";; 300 301 int fd_tmp = -1; 301 302 use_key = (use_key == true && key != NULL); ··· 309 310 { 310 311 /* need to keep the old hash so we can remove the old entry */ 311 312 hash = op_entry.hash; 312 - open_plugin_get_hash(plugin, &op_entry.hash); 313 + open_plugin_get_hash(plugin, &newhash); 314 + op_entry.hash = newhash; 313 315 } 314 316 else 315 317 hash = op_entry.hash; ··· 352 354 /* hash on the parameter path if it is a file */ 353 355 if (op_entry.lang_id <0 && key == op_entry.path && 354 356 rb->file_exists(op_entry.param)) 355 - open_plugin_get_hash(op_entry.path, &op_entry.hash); 357 + { 358 + open_plugin_get_hash(op_entry.path, &newhash); 359 + op_entry.hash = newhash; 360 + } 356 361 } 357 362 358 363 rb->write(fd_tmp, &op_entry, op_entry_sz); /* add new entry first */