From a2d9dbdcb949b30ae61a881dd1cc8440ed10c523 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Fri, 30 Apr 2004 21:16:35 +0000 Subject: didn't I say no more hardware banging? git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4566 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/video.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps') 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: -- cgit v1.2.3