]> git.sesse.net Git - vlc/commitdiff
Fixed a really bad type (input).
authorLaurent Aimar <fenrir@videolan.org>
Sun, 8 Mar 2009 20:10:21 +0000 (21:10 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 8 Mar 2009 20:11:39 +0000 (21:11 +0100)
src/input/stream.c

index cf68932467f7b3c828795b6bbe4847d8adb9ad19..08075dc4b599689cd751e0587a4d3e80eafa04b5 100644 (file)
@@ -1102,7 +1102,7 @@ static int AStreamReadStream( stream_t *s, void *p_read, unsigned int i_read )
         /* */
         p_sys->stream.i_used += i_copy;
 
-        if( tk->i_end - tk->i_start - p_sys->stream.i_offset < i_read - i_data )
+        if( tk->i_end - tk->i_start - p_sys->stream.i_offset <= i_read -i_data )
         {
             const int i_read_requested = __MAX( __MIN( i_read - i_data,
                                                        STREAM_READ_ATONCE * 10 ),