Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
3d7b3dab
Commit
3d7b3dab
authored
Oct 26, 2006
by
Rémi Denis-Courmont
Browse files
Character devices are not seekable.
Thanks to Ed Schouten for noticing.
parent
ea293f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/file.c
View file @
3d7b3dab
...
...
@@ -227,14 +227,13 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_seekable
=
VLC_TRUE
;
}
#elif defined( HAVE_SYS_STAT_H )
else
if
(
S_ISREG
(
stat_info
.
st_mode
)
||
S_ISCHR
(
stat_info
.
st_mode
)
||
S_ISBLK
(
stat_info
.
st_mode
)
)
else
if
(
S_ISREG
(
stat_info
.
st_mode
)
||
S_ISBLK
(
stat_info
.
st_mode
)
)
{
p_sys
->
b_seekable
=
VLC_TRUE
;
p_access
->
info
.
i_size
=
stat_info
.
st_size
;
}
else
if
(
S_ISFIFO
(
stat_info
.
st_mode
)
# if
!
def
ined( SYS_BEOS ) && !defined( WIN32 )
else
if
(
S_ISCHR
(
stat_info
.
st_mode
)
||
S_ISFIFO
(
stat_info
.
st_mode
)
# ifdef
S_ISSOCK
||
S_ISSOCK
(
stat_info
.
st_mode
)
# endif
)
...
...
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