summaryrefslogtreecommitdiffstats
path: root/apps/plugins/video.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-04-30 21:16:35 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-04-30 21:16:35 +0000
commita2d9dbdcb949b30ae61a881dd1cc8440ed10c523 (patch)
tree26b01b6e931e5b5816a2c49e64f39efce147f892 /apps/plugins/video.c
parente724b605f402dbe58f61fdeea266fd2aab53784f (diff)
downloadrockbox-a2d9dbdcb949b30ae61a881dd1cc8440ed10c523.tar.gz
rockbox-a2d9dbdcb949b30ae61a881dd1cc8440ed10c523.zip
didn't I say no more hardware banging?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4566 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/video.c')
-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 c7e893fccd..234017d6f2 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: