]> git.sesse.net Git - vlc/commitdiff
Switcher: avoid use of unset variable
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 29 Oct 2011 17:02:34 +0000 (19:02 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 30 Oct 2011 23:42:18 +0000 (00:42 +0100)
modules/stream_out/switcher.c

index 9909040280cdf519e91e99c276696df3aa0c8fcf..27320864736c647a8a0298dd5855878bab8278f3 100644 (file)
@@ -509,8 +509,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
 
         while ( id->p_queued != NULL )
         {
-            mtime_t i_dts;
-            int i;
+            mtime_t i_dts = 0;
 
             if ( p_sys->i_old_cmd != p_sys->i_cmd )
             {
@@ -519,7 +518,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
 
             i_dts = Process( p_stream, id, i_dts );
 
-            for ( i = 0; i < MAX_AUDIO; i++ )
+            for ( int i = 0; i < MAX_AUDIO; i++ )
             {
                 if ( p_sys->pp_audio_ids[i] != NULL )
                     Process( p_stream, p_sys->pp_audio_ids[i], i_dts );