changed the plugin to display a friendly message instead of plugin error when an id3 struct is not returned
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3882 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c4ec0a2a3d
commit
2ff873ff58
1 changed files with 5 additions and 3 deletions
|
@ -21,9 +21,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
rb = api;
|
||||
|
||||
id3 = rb->mpeg_current_track();
|
||||
if (!id3)
|
||||
return PLUGIN_ERROR;
|
||||
|
||||
if (!id3) {
|
||||
rb->splash(HZ*2, 0, true, "Nothing To Save");
|
||||
return PLUGIN_OK;
|
||||
}
|
||||
|
||||
fd = rb->open(FAVORITES_FILE, O_WRONLY);
|
||||
|
||||
// creat the file if it does not return on open.
|
||||
|
|
Loading…
Reference in a new issue