1
0
Fork 0
forked from len0rd/rockbox

Resume now starts playback at the point it was stopped, not 2-7 seconds later.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7125 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Ryan Jackson 2005-07-12 16:45:38 +00:00
parent 40a8401cd3
commit d191756286
4 changed files with 26 additions and 4 deletions

View file

@ -227,8 +227,8 @@ enum codec_status codec_start(struct codec_api* api)
if ( rb->id3->offset ) {
rb->advance_buffer(rb->id3->offset);
ov_raw_seek(&vf,rb->id3->offset);
rb->id3->offset = ov_raw_tell(&vf);
rb->set_elapsed(ov_time_tell(&vf));
rb->set_offset(ov_raw_tell(&vf));
}
eof=0;
@ -272,7 +272,7 @@ enum codec_status codec_start(struct codec_api* api)
}
}
if ( !rb->seek_time ) {
rb->id3->offset = ov_raw_tell(&vf);
rb->set_offset(ov_raw_tell(&vf));
rb->set_elapsed(ov_time_tell(&vf));
rb->yield();
}