Commit 4d961a24 authored by Laurent Aimar's avatar Laurent Aimar

Assert that seek position is > 0.

parent 88fd7db1
...@@ -1833,6 +1833,7 @@ static int ASeek( stream_t *s, int64_t i_pos ) ...@@ -1833,6 +1833,7 @@ static int ASeek( stream_t *s, int64_t i_pos )
{ {
stream_sys_t *p_sys = s->p_sys; stream_sys_t *p_sys = s->p_sys;
access_t *p_access = p_sys->p_access; access_t *p_access = p_sys->p_access;
assert( i_pos >= 0 );
/* Check which stream we need to access */ /* Check which stream we need to access */
if( p_sys->i_list ) if( p_sys->i_list )
......
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