diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-03-06 08:13:56 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-03-06 08:13:56 +0000 |
commit | 8050d47a4e2c3a62160d617af1c1ca38382f1319 (patch) | |
tree | 77884b13e5bcccb7fad0d55120b49e1b2ae35d3d /apps/codecs/wav.c | |
parent | ff733b5f896b76b0678b7cdc178ee805f377b7b4 (diff) |
When seek action failed, play time is invalid.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25041 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/wav.c')
-rw-r--r-- | apps/codecs/wav.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c index 412d548817..8576ddda41 100644 --- a/apps/codecs/wav.c +++ b/apps/codecs/wav.c @@ -395,12 +395,12 @@ next_track: if (ci->seek_time) { struct pcm_pos *newpos = codec->get_seek_pos(ci->seek_time, &read_buffer); - decodedsamples = newpos->samples; if (newpos->pos > format.numbytes) break; if (ci->seek_buffer(firstblockposn + newpos->pos)) { - bytesdone = newpos->pos; + bytesdone = newpos->pos; + decodedsamples = newpos->samples; } ci->seek_complete(); } |