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.

FS#13746: open_plugin_run() doesn't handle "not found" properly

If the specified key wasn't found, we would fall back to trying to launch
a plugin with the LANG_* key. This will fail, resulting in an error
that spells out the (inappropriate) LANG_* text.

Instead, fail out with a more appropriate error.

Change-Id: I046878f87a2ef2bc994d0b7d037359695a18d392

+4
+4
apps/open_plugin.c
··· 479 479 { 480 480 int ret = 0; 481 481 int opret = open_plugin_load_entry(key); 482 + if (opret == OPEN_PLUGIN_NOT_FOUND) { 483 + splashf(HZ*2, ID2P(LANG_PLUGIN_CANT_OPEN), key ? P2STR((unsigned char *)key) : ""); 484 + return ret; 485 + } 482 486 struct open_plugin_entry_t *op_entry = open_plugin_get_entry(); 483 487 if (opret == OPEN_PLUGIN_NEEDS_FLUSHED) 484 488 op_update_dat(op_entry, false);