summaryrefslogtreecommitdiffstats
path: root/apps
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 /apps
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
Diffstat (limited to 'apps')
-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)
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.