Commit d054685c authored by Laurent Aimar's avatar Laurent Aimar

* stream.c: call Seek if stream_Read( s, NULL, skip );

parent 2879411e
......@@ -479,6 +479,9 @@ static int AStreamReadBlock( stream_t *s, void *p_read, int i_read )
if( p_sys->block.p_current == NULL )
return 0;
if( p_read == NULL )
return AStreamSeekBlock( s, p_sys->i_pos + i_read ) ? 0 : i_read;
while( i_data < i_read )
{
int i_current =
......@@ -795,6 +798,9 @@ static int AStreamReadStream( stream_t *s, void *p_read, int i_read )
if( tk->i_start >= tk->i_end ) return 0; /* EOF */
if( p_read == NULL )
return AStreamSeekStream( s, p_sys->i_pos + i_read ) ? 0 : i_read;
#if 0
msg_Dbg( s, "AStreamReadStream: %d pos="I64Fd" tk=%d start="I64Fd
" offset=%d end="I64Fd,
......
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