]> git.sesse.net Git - vlc/commitdiff
Revert "file: rewind before read"
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 09:59:22 +0000 (11:59 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 09:59:22 +0000 (11:59 +0200)
This reverts commit 09049343c7bdaf39aa5840710260141962e4bdc2.

modules/access/file.c

index a43732f0836a5e2bc25884398567b91381a1dc15..1db875dd3a75c9d058ae296926f6b9a54debcf13 100644 (file)
@@ -145,11 +145,7 @@ int Open( vlc_object_t *p_this )
         int oldfd = strtol (path, &end, 10);
 
         if (*end == '\0')
-        {
             fd = dup (oldfd);
-            if (fd != -1)
-                lseek (fd, 0, SEEK_SET);
-        }
 #ifdef HAVE_FDOPENDIR
         else if (*end == '/' && end > path)
         {