summaryrefslogtreecommitdiff
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.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:
89 if (duration < 0) 89 if (duration < 0)
90 duration = 180 * 1000; 90 duration = 180 * 1000;
91 91
92 /* set id3 length, because metadata parse might not have done it */
93 ci->id3->length = duration;
94
92 ASAP_PlaySong(&asap, song, duration); 95 ASAP_PlaySong(&asap, song, duration);
93 ASAP_MutePokeyChannels(&asap, 0); 96 ASAP_MutePokeyChannels(&asap, 0);
94 97