summaryrefslogtreecommitdiff
path: root/apps/codecs/wav.c
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-03-06 08:13:56 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-03-06 08:13:56 +0000
commit8050d47a4e2c3a62160d617af1c1ca38382f1319 (patch)
tree77884b13e5bcccb7fad0d55120b49e1b2ae35d3d /apps/codecs/wav.c
parentff733b5f896b76b0678b7cdc178ee805f377b7b4 (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.c4
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();
}