summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2010-02-08 16:48:56 +0000
committerDominik Wenger <domonoky@googlemail.com>2010-02-08 16:48:56 +0000
commitba45adbafca9677e6c40e01b6d0ed1f5f0cfa79b (patch)
tree75ab57bc7f31a3dcd469dbf8ccacc5d4a1020ea5
parent54ca7657699577b1e8e84bc98ac2aa00eef6bc69 (diff)
downloadrockbox-ba45adbafca9677e6c40e01b6d0ed1f5f0cfa79b.tar.gz
rockbox-ba45adbafca9677e6c40e01b6d0ed1f5f0cfa79b.tar.bz2
rockbox-ba45adbafca9677e6c40e01b6d0ed1f5f0cfa79b.zip
correctly set playback time in the asap codec. (metadata parser might not do it for all fileformats).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24567 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/asap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/codecs/asap.c b/apps/codecs/asap.c
index bb627ad06c..bcb47a717d 100644
--- a/apps/codecs/asap.c
+++ b/apps/codecs/asap.c
@@ -89,6 +89,9 @@ next_track:
if (duration < 0)
duration = 180 * 1000;
+ /* set id3 length, because metadata parse might not have done it */
+ ci->id3->length = duration;
+
ASAP_PlaySong(&asap, song, duration);
ASAP_MutePokeyChannels(&asap, 0);