]> git.sesse.net Git - vlc/commitdiff
Fix a bug introduced by 920692ff5d2d6b001e0f6ac7bda1978c9f7abd1f
authorAntoine Lejeune <phytos@videolan.org>
Thu, 24 Apr 2008 12:02:35 +0000 (14:02 +0200)
committerChristophe Mutricy <xtophe@videolan.org>
Fri, 25 Apr 2008 15:31:51 +0000 (16:31 +0100)
Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
src/input/input.c

index 0146d46182657a03820ea6d8937818b5a6d9db33..a6ddee466a26233bec912e1a53c3ad0a2062718e 100644 (file)
@@ -929,6 +929,7 @@ static void StartTitle( input_thread_t * p_input )
     int i, i_delay;
     char *psz;
     char *psz_subtitle;
+    int64_t i_length;
 
     /* Start title/chapter */
 
@@ -952,6 +953,7 @@ static void StartTitle( input_thread_t * p_input )
     p_input->p->i_start = I64C(1000000) * var_GetInteger( p_input, "start-time" );
     p_input->p->i_stop  = I64C(1000000) * var_GetInteger( p_input, "stop-time" );
     p_input->p->i_run   = I64C(1000000) * var_GetInteger( p_input, "run-time" );
+    i_length = var_GetTime( p_input, "length" );
     if( p_input->p->i_run < 0 )
     {
         msg_Warn( p_input, "invalid run-time ignored" );
@@ -960,7 +962,7 @@ static void StartTitle( input_thread_t * p_input )
 
     if( p_input->p->i_start > 0 )
     {
-        if( p_input->p->i_start >= val.i_time )
+        if( p_input->p->i_start >= i_length )
         {
             msg_Warn( p_input, "invalid start-time ignored" );
         }