Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
09049343
Commit
09049343
authored
Jan 16, 2010
by
Rémi Denis-Courmont
Browse files
file: rewind before read
parent
e5afe49a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/file.c
View file @
09049343
...
...
@@ -145,7 +145,11 @@ 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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment