[vlc-devel] commit: File: devices are not seekable ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Jun 12 19:09:05 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jun 12 20:10:55 2008 +0300| [ead20e7c7c83815787f946db920e51bc38706eee]
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ead20e7c7c83815787f946db920e51bc38706eee
---
modules/access/file.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index 29228dc..1878f40 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -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;
More information about the vlc-devel
mailing list