From 5e3cc4fcdfa47f674ea19b8be4971bea9d58f40a Mon Sep 17 00:00:00 2001 From: kugel Date: Fri, 26 Nov 2010 18:15:59 +0000 Subject: [PATCH] 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 --- apps/metadata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/metadata.c b/apps/metadata.c index fb0ce0341c..866e035f4e 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; -- 2.11.4.GIT