Commit 31346a79 authored by Laurent Aimar's avatar Laurent Aimar

Fixed a stream block mode seeking corner case.

 Seeking on a block boundary that is exactly the end of our already
cached data was incorrect.
parent c759006f
...@@ -967,7 +967,7 @@ static int AStreamSeekBlock( stream_t *s, int64_t i_pos ) ...@@ -967,7 +967,7 @@ static int AStreamSeekBlock( stream_t *s, int64_t i_pos )
} }
while( p_sys->block.i_start + p_sys->block.i_size < i_pos ); while( p_sys->block.i_start + p_sys->block.i_size < i_pos );
p_sys->block.i_offset = i_pos - p_sys->i_pos; p_sys->block.i_offset += i_pos - p_sys->i_pos;
p_sys->i_pos = i_pos; p_sys->i_pos = i_pos;
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