summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-12-22 23:10:04 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-12-22 23:10:04 +0000
commit9eb03c1043a8f51e0785b301b9854dcee0044aa1 (patch)
treeeb6517a7d8359bf88e3a383313d34657613fdcfe /apps
parentc561e53948bafca0ea69cf2d5e303ca2867e86b8 (diff)
better USB handling, typo fixed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4174 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/video.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/video.c b/apps/plugins/video.c
index c08708b19c..5620253d59 100644
--- a/apps/plugins/video.c
+++ b/apps/plugins/video.c
@@ -330,6 +330,7 @@ int main(char* filename)
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
{
+ int ret;
/* this macro should be called as the first thing you do in the plugin.
it test that the api version and model the plugin was compiled for
matches the machine it is running on */
@@ -339,12 +340,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
if (parameter == NULL)
{
- rb->splash(HZ*2, 0, true, "play .rfv file");
+ rb->splash(HZ*2, 0, true, "Play .rvf file!");
return PLUGIN_ERROR;
}
/* now go ahead and have fun! */
- return main((char*) parameter);
+ ret = main((char*) parameter);
+ if (ret==PLUGIN_USB_CONNECTED)
+ rb->usb_screen();
+ return ret;
}
#endif /* #ifdef HAVE_LCD_BITMAP */