[vlc-commits] vlc_input_title_Duplicate: use C99 for

Jean-Baptiste Kempf git at videolan.org
Wed Jun 22 12:21:16 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun 22 11:55:35 2016 +0200| [5c24252aaa83bd2532259d03cbb0ecc0b8f88cc8] | committer: Jean-Baptiste Kempf

vlc_input_title_Duplicate: use C99 for

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

 include/vlc_input.h |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 93b06f2..5ad04e0 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -133,8 +133,6 @@ static inline input_title_t *vlc_input_title_Duplicate( const input_title_t *t )
     input_title_t *dup = vlc_input_title_New( );
     if( dup == NULL) return NULL;
 
-    int i;
-
     if( t->psz_name ) dup->psz_name = strdup( t->psz_name );
     dup->i_flags     = t->i_flags;
     dup->i_length    = t->i_length;
@@ -143,7 +141,7 @@ static inline input_title_t *vlc_input_title_Duplicate( const input_title_t *t )
         dup->seekpoint = (seekpoint_t**)malloc( t->i_seekpoint * sizeof(seekpoint_t*) );
         if( likely(dup->seekpoint) )
         {
-            for( i = 0; i < t->i_seekpoint; i++ )
+            for( int i = 0; i < t->i_seekpoint; i++ )
                 dup->seekpoint[i] = vlc_seekpoint_Duplicate( t->seekpoint[i] );
             dup->i_seekpoint = t->i_seekpoint;
         }



More information about the vlc-commits mailing list