]> git.sesse.net Git - vlc/commitdiff
Assert that seek position is > 0.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 20 Jan 2010 23:37:11 +0000 (00:37 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 21 Jan 2010 23:18:33 +0000 (00:18 +0100)
src/input/stream.c

index f1f694c6cb92974fadd3aac3f935c55a92692c3e..6aecee0e4417c031e503b281504c7ef9e6519cf5 100644 (file)
@@ -1833,6 +1833,7 @@ static int ASeek( stream_t *s, int64_t i_pos )
 {
     stream_sys_t *p_sys = s->p_sys;
     access_t *p_access = p_sys->p_access;
+    assert( i_pos >= 0 );
 
     /* Check which stream we need to access */
     if( p_sys->i_list )