summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-11-26 18:15:59 +0000
committerThomas Martitz <kugel@rockbox.org>2010-11-26 18:15:59 +0000
commitec9bb4c684aa3bbee46859ad6f9366e403521f53 (patch)
treee2f81ef1d5df71abe08d645ca99708188a666c90
parent4f03a97169e4a468e04943d46baeb9b878668035 (diff)
downloadrockbox-ec9bb4c684aa3bbee46859ad6f9366e403521f53.zip
rockbox-ec9bb4c684aa3bbee46859ad6f9366e403521f53.tar.gz
rockbox-ec9bb4c684aa3bbee46859ad6f9366e403521f53.tar.bz2
rockbox-ec9bb4c684aa3bbee46859ad6f9366e403521f53.tar.xz
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
-rw-r--r--apps/metadata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index fb0ce03..866e035 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -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;