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

Allow seeking of character devices with non-zero size

parent 0e4e3e85
......@@ -227,7 +227,8 @@ 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_ISBLK(stat_info.st_mode) )
else if( S_ISREG(stat_info.st_mode) || S_ISBLK(stat_info.st_mode)
|| ( S_ISCHR(stat_info.st_mode) && (stat_info.st_size > 0) ) )
{
p_sys->b_seekable = VLC_TRUE;
p_access->info.i_size = stat_info.st_size;
......
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