]> git.sesse.net Git - vlc/commitdiff
Store the time and length in int, since we use only the seconds count.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 11 Nov 2007 01:51:57 +0000 (01:51 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 11 Nov 2007 01:51:57 +0000 (01:51 +0000)
modules/gui/qt4/input_manager.cpp

index c27ba2ae992b4b2217eacdecf5e27f48ff6316c4..39e9b2f3ce20b43e4af058d591a51641be334d80 100644 (file)
@@ -99,13 +99,14 @@ void InputManager::update()
     }
 
     /* Update position */
-    mtime_t i_length, i_time;
+    int i_length, i_time; /* Int is enough, since we store seconds */
     float f_pos;
     i_length = var_GetTime( p_input, "length" ) / 1000000;
     i_time = var_GetTime( p_input, "time") / 1000000;
     f_pos = var_GetFloat( p_input, "position" );
     emit positionUpdated( f_pos, i_time, i_length );
 
+    /* Update Rate */
     int i_new_rate = var_GetInteger( p_input, "rate");
     if( i_new_rate != i_rate )
     {