]> git.sesse.net Git - vlc/commitdiff
stream: avoid shadowing
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 13 Aug 2014 17:41:00 +0000 (20:41 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 13 Aug 2014 18:24:18 +0000 (21:24 +0300)
src/input/stream.c

index 64d47b4fd08eb9060844c16f7c4c20846deed8a9..42e464a2e53c5d6cfca266afefa941cb69eebd8d 100644 (file)
@@ -994,7 +994,6 @@ static int AStreamSeekBlock( stream_t *s, uint64_t i_pos )
 static int AStreamRefillBlock( stream_t *s )
 {
     stream_sys_t *p_sys = s->p_sys;
-    block_t      *b;
 
     /* Release data */
     while( p_sys->block.i_size >= STREAM_CACHE_SIZE &&
@@ -1018,6 +1017,8 @@ static int AStreamRefillBlock( stream_t *s )
 
     /* Now read a new block */
     const int64_t i_start = mdate();
+    block_t *b;
+
     for( ;; )
     {
         bool b_eof;