summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/video.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/video.c b/apps/plugins/video.c
index c7e893f..234017d 100644
--- a/apps/plugins/video.c
+++ b/apps/plugins/video.c
@@ -621,7 +621,7 @@ int PlayTick(int fd)
if (gPlay.bHasAudio)
rb->mp3_play_pause(false); // pause audio
if (gPlay.bHasVideo)
- and_b(~0x10, &TSTR); // stop the timer 4
+ rb->plugin_unregister_timer(); // stop the timer
}
else if (gPlay.state == paused)
{
@@ -633,7 +633,10 @@ int PlayTick(int fd)
rb->mp3_play_pause(true); // play audio
}
if (gPlay.bHasVideo)
- or_b(0x10, &TSTR); // start the video
+ { // start the video
+ rb->plugin_register_timer(
+ gFileHdr.video_frametime, 1, timer4_isr);
+ }
}
break;
case BUTTON_UP: