Fix FS #7976. WMA metadata parser didn't store file size in metadata struct.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15150 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2007-10-16 20:21:02 +00:00
parent 294a4c0ef9
commit 1129ed7faa

View file

@ -510,7 +510,7 @@ bool get_asf_metadata(int fd, struct mp3entry* id3)
header.
*/
id3->first_frame_offset = lseek(fd, 0, SEEK_CUR) + 26;
id3->filesize = filesize(fd);
/* We copy the wfx struct to the MP3 TOC field in the id3 struct so
the codec doesn't need to parse the header object again */
memcpy(id3->toc, &wfx, sizeof(wfx));