Commit ead20e7c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

File: devices are not seekable

Character device may be seekable (depending on the device) and block
device are seekable, but only on certain boundaries which we don't
handle.
parent 799fa200
......@@ -193,9 +193,7 @@ static int Open( vlc_object_t *p_this )
#ifdef HAVE_SYS_STAT_H
p_access->info.i_size = st.st_size;
if (!S_ISREG (st.st_mode)
&& !S_ISBLK (st.st_mode)
&& !S_ISCHR (st.st_mode))
if (!S_ISREG (st.st_mode))
p_sys->b_seekable = false;
#else
p_sys->b_seekable = !b_stdin;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment