From 9eb03c1043a8f51e0785b301b9854dcee0044aa1 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Mon, 22 Dec 2003 23:10:04 +0000 Subject: better USB handling, typo fixed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4174 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/video.c | 8 ++++++-- 1 file 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 */ -- cgit v1.2.3