summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/wma.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/codecs/wma.c b/apps/codecs/wma.c
index bf11841..f50b023 100644
--- a/apps/codecs/wma.c
+++ b/apps/codecs/wma.c
@@ -321,7 +321,7 @@ enum codec_status codec_main(void)
ci->configure(DSP_SET_SAMPLE_DEPTH, 30);
- next_track:
+next_track:
/* Wait for the metadata to be read */
while (!*ci->taginfo_ready && !ci->stop_codec)
@@ -373,10 +373,13 @@ enum codec_status codec_main(void)
goto done;
}
- /* Deal with any pending seek requests - ignore them */
+ /* Deal with any pending seek requests */
if (ci->seek_time)
{
+ /* Ignore all seeks for now, unless for the start of the track */
ci->seek_complete();
+ if (ci->seek_time == 1)
+ goto next_track; /* Pretend you never saw this... */
}
res = asf_read_packet(&audiobuf, &audiobufsize, &packetlength, &wfx);