diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-12-22 23:10:04 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-12-22 23:10:04 +0000 |
commit | 9eb03c1043a8f51e0785b301b9854dcee0044aa1 (patch) | |
tree | eb6517a7d8359bf88e3a383313d34657613fdcfe | |
parent | c561e53948bafca0ea69cf2d5e303ca2867e86b8 (diff) | |
download | rockbox-9eb03c1043a8f51e0785b301b9854dcee0044aa1.tar.gz rockbox-9eb03c1043a8f51e0785b301b9854dcee0044aa1.zip |
better USB handling, typo fixed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4174 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/video.c | 8 |
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) | |||
330 | 330 | ||
331 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 331 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) |
332 | { | 332 | { |
333 | int ret; | ||
333 | /* this macro should be called as the first thing you do in the plugin. | 334 | /* this macro should be called as the first thing you do in the plugin. |
334 | it test that the api version and model the plugin was compiled for | 335 | it test that the api version and model the plugin was compiled for |
335 | matches the machine it is running on */ | 336 | matches the machine it is running on */ |
@@ -339,12 +340,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
339 | 340 | ||
340 | if (parameter == NULL) | 341 | if (parameter == NULL) |
341 | { | 342 | { |
342 | rb->splash(HZ*2, 0, true, "play .rfv file"); | 343 | rb->splash(HZ*2, 0, true, "Play .rvf file!"); |
343 | return PLUGIN_ERROR; | 344 | return PLUGIN_ERROR; |
344 | } | 345 | } |
345 | 346 | ||
346 | /* now go ahead and have fun! */ | 347 | /* now go ahead and have fun! */ |
347 | return main((char*) parameter); | 348 | ret = main((char*) parameter); |
349 | if (ret==PLUGIN_USB_CONNECTED) | ||
350 | rb->usb_screen(); | ||
351 | return ret; | ||
348 | } | 352 | } |
349 | 353 | ||
350 | #endif /* #ifdef HAVE_LCD_BITMAP */ | 354 | #endif /* #ifdef HAVE_LCD_BITMAP */ |