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.
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;
- }
+ 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