Re-add the lseek to the beginning of the file which was accidentally removed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28674 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-11-26 18:15:59 +00:00
parent 4f03a97169
commit ec9bb4c684

View file

@ -312,6 +312,7 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
return false;
}
lseek(fd, 0, SEEK_SET);
strlcpy(id3->path, trackname, sizeof(id3->path));
/* We have successfully read the metadata from the file */
return true;