Commit 7f581337 authored by Laurent Aimar's avatar Laurent Aimar

Allow back seeking after an access EOF.

It is up to the access to refuse if it can't.
Anyway, the check was only for one path of a seek command (when using
stream_Read( NULL, size)).
This partially revert fc9f8518, please report any breakage.
parent 6f3cc15c
......@@ -1058,15 +1058,11 @@ static int AStreamReadStream( stream_t *s, void *p_read, unsigned int i_read )
stream_sys_t *p_sys = s->p_sys;
access_t *p_access = p_sys->p_access;
/* seeking after EOF is not what we want */
if( !( p_access->info.b_eof ) )
{
bool b_aseek;
access_Control( p_access, ACCESS_CAN_SEEK, &b_aseek );
if( b_aseek )
return AStreamSeekStream( s, p_sys->i_pos + i_read ) ? 0 : i_read;
}
}
#ifdef STREAM_DEBUG
msg_Dbg( s, "AStreamReadStream: %d pos=%"PRId64" tk=%d start=%"PRId64
......
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