diff options
author | Jerome Kuptz <jeromekuptz@gmail.com> | 2003-07-25 01:32:35 +0000 |
---|---|---|
committer | Jerome Kuptz <jeromekuptz@gmail.com> | 2003-07-25 01:32:35 +0000 |
commit | 2ff873ff58c114be6bdbcb88fb297fb1e70f7983 (patch) | |
tree | 7811a501e88122b12c59e97bfbacd59bd2db8735 /apps/plugins/favorites.c | |
parent | c4ec0a2a3d6ba807fa39a844699bb555a6ef6964 (diff) | |
download | rockbox-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/plugins/favorites.c')
-rw-r--r-- | apps/plugins/favorites.c | 8 |
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. |