[vlc-devel] commit: Assert that seek position is > 0. (Laurent Aimar )

git version control git at videolan.org
Fri Jan 22 00:20:05 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Jan 21 00:37:11 2010 +0100| [4d961a24d1111f64a0f1453f0a1c82caa1f49287] | committer: Laurent Aimar 

Assert that seek position is > 0.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d961a24d1111f64a0f1453f0a1c82caa1f49287
---

 src/input/stream.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/input/stream.c b/src/input/stream.c
index f1f694c..6aecee0 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -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 )




More information about the vlc-devel mailing list