summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Kuptz <jeromekuptz@gmail.com>2003-07-25 01:32:35 +0000
committerJerome Kuptz <jeromekuptz@gmail.com>2003-07-25 01:32:35 +0000
commit2ff873ff58c114be6bdbcb88fb297fb1e70f7983 (patch)
tree7811a501e88122b12c59e97bfbacd59bd2db8735
parentc4ec0a2a3d6ba807fa39a844699bb555a6ef6964 (diff)
downloadrockbox-2ff873ff58c114be6bdbcb88fb297fb1e70f7983.tar.gz
rockbox-2ff873ff58c114be6bdbcb88fb297fb1e70f7983.zip
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
-rw-r--r--apps/plugins/favorites.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/favorites.c b/apps/plugins/favorites.c
index 59001647ac..3ee597e3ef 100644
--- a/apps/plugins/favorites.c
+++ b/apps/plugins/favorites.c
@@ -21,9 +21,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
21 rb = api; 21 rb = api;
22 22
23 id3 = rb->mpeg_current_track(); 23 id3 = rb->mpeg_current_track();
24 if (!id3) 24 if (!id3) {
25 return PLUGIN_ERROR; 25 rb->splash(HZ*2, 0, true, "Nothing To Save");
26 26 return PLUGIN_OK;
27 }
28
27 fd = rb->open(FAVORITES_FILE, O_WRONLY); 29 fd = rb->open(FAVORITES_FILE, O_WRONLY);
28 30
29 // creat the file if it does not return on open. 31 // creat the file if it does not return on open.