Commit 8abeccdf authored by Laurent Aimar's avatar Laurent Aimar

stream.c: fixed a bug when seeking again near the end of the file.

parent bb2cb752
...@@ -995,7 +995,7 @@ static int AStreamSeekStream( stream_t *s, int64_t i_pos ) ...@@ -995,7 +995,7 @@ static int AStreamSeekStream( stream_t *s, int64_t i_pos )
if( p_sys->stream.i_used < 1024 ) if( p_sys->stream.i_used < 1024 )
p_sys->stream.i_used = 1024; p_sys->stream.i_used = 1024;
if( AStreamRefillStream( s ) ) if( AStreamRefillStream( s ) && i_pos == tk->i_end )
return VLC_EGENERIC; return VLC_EGENERIC;
return VLC_SUCCESS; return VLC_SUCCESS;
......
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