From 2ff873ff58c114be6bdbcb88fb297fb1e70f7983 Mon Sep 17 00:00:00 2001 From: Jerome Kuptz Date: Fri, 25 Jul 2003 01:32:35 +0000 Subject: 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 --- apps/plugins/favorites.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/plugins/favorites.c') 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. -- cgit v1.2.3