forked from len0rd/rockbox
didn't I say no more hardware banging?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4566 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e724b605f4
commit
a2d9dbdcb9
1 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue