summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2007-10-17 12:51:37 +0000
committerThom Johansen <thomj@rockbox.org>2007-10-17 12:51:37 +0000
commita478e46946ea61347fd66a32c7dadcbf72debbd3 (patch)
tree0008bfc4166029446d33ee8aacdf757e0f901a91 /apps/codecs
parentb1caffc7bd94fc25a9a8e520b46cde81f0efe42e (diff)
downloadrockbox-a478e46946ea61347fd66a32c7dadcbf72debbd3.zip
rockbox-a478e46946ea61347fd66a32c7dadcbf72debbd3.tar.gz
rockbox-a478e46946ea61347fd66a32c7dadcbf72debbd3.tar.bz2
rockbox-a478e46946ea61347fd66a32c7dadcbf72debbd3.tar.xz
Fix FS #7973. Hack a way to make skip to start of track work for WMA until we have proper seeking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15166 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-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);