summaryrefslogtreecommitdiff
path: root/apps/plugins/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/video.c')
-rw-r--r--apps/plugins/video.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/plugins/video.c b/apps/plugins/video.c
index a31b7c5415..bd2ddb5de6 100644
--- a/apps/plugins/video.c
+++ b/apps/plugins/video.c
@@ -143,7 +143,6 @@ typedef struct /* the little header for all audio blocks */
143 143
144/****************** globals ******************/ 144/****************** globals ******************/
145 145
146static const struct plugin_api* rb; /* here is a global api struct pointer */
147static char gPrint[32]; /* a global printf buffer, saves stack */ 146static char gPrint[32]; /* a global printf buffer, saves stack */
148 147
149 148
@@ -587,7 +586,7 @@ void Cleanup(void *fd)
587 rb->mp3_play_stop(); /* stop audio ISR */ 586 rb->mp3_play_stop(); /* stop audio ISR */
588 587
589 /* Turn on backlight timeout (revert to settings) */ 588 /* Turn on backlight timeout (revert to settings) */
590 backlight_use_settings(rb); /* backlight control in lib/helper.c */ 589 backlight_use_settings(); /* backlight control in lib/helper.c */
591 590
592 /* restore normal contrast */ 591 /* restore normal contrast */
593 rb->lcd_set_contrast(rb->global_settings->contrast); 592 rb->lcd_set_contrast(rb->global_settings->contrast);
@@ -956,7 +955,7 @@ int main(char* filename)
956 { 955 {
957 gPlay.bHasVideo = true; 956 gPlay.bHasVideo = true;
958 /* Turn off backlight timeout */ 957 /* Turn off backlight timeout */
959 backlight_force_on(rb); /* backlight control in lib/helper.c */ 958 backlight_force_on(); /* backlight control in lib/helper.c */
960 } 959 }
961 960
962 /* prepare audio playback, if contained */ 961 /* prepare audio playback, if contained */
@@ -1014,10 +1013,8 @@ int main(char* filename)
1014 1013
1015/***************** Plugin Entry Point *****************/ 1014/***************** Plugin Entry Point *****************/
1016 1015
1017enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 1016enum plugin_status plugin_start(const void* parameter)
1018{ 1017{
1019 rb = api; /* copy to global api pointer */
1020
1021 if (parameter == NULL) 1018 if (parameter == NULL)
1022 { 1019 {
1023 rb->splash(HZ*2, "Play .rvf file!"); 1020 rb->splash(HZ*2, "Play .rvf file!");