diff options
author | Ryan Jackson <rdjackso@rockbox.org> | 2005-07-12 16:45:38 +0000 |
---|---|---|
committer | Ryan Jackson <rdjackso@rockbox.org> | 2005-07-12 16:45:38 +0000 |
commit | d1917562864754fd01f735311f15e028554f30bc (patch) | |
tree | 3e2c7c91e8966e6e7a48fcdf64a771624928a86c /apps/codecs | |
parent | 40a8401cd35cef71b0ffa017106ee156fb3239ed (diff) |
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
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/vorbis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c index 82ebdbf1f5..03f1ae95b5 100644 --- a/apps/codecs/vorbis.c +++ b/apps/codecs/vorbis.c @@ -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(); } |