]> git.sesse.net Git - vlc/commitdiff
Qt: display the correct rate
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 2 Mar 2010 15:53:11 +0000 (16:53 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 2 Mar 2010 17:16:39 +0000 (18:16 +0100)
Close #3368

modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/input_manager.cpp

index 058d427b8674bd6588a669de5311ded7dcc69aa1..07d68e671ce8fc2d877de40f683392be453e196a 100644 (file)
@@ -430,7 +430,7 @@ SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, QWidget *parent )
 
     DCONNECT( THEMIM, inputChanged( input_thread_t * ),
               speedControl, activateOnState() );
-    setRate( INPUT_RATE_DEFAULT );
+    setRate( INPUT_RATE_DEFAULT / var_InheritFloat( p_intf, "rate" ) );
 }
 
 SpeedLabel::~SpeedLabel()
index a648febfe7c932718cc28505650738af0d1877df..42e46dd68e434f1e753fd219e29bcb45b316a760 100644 (file)
@@ -117,7 +117,7 @@ void InputManager::setInput( input_thread_t *_p_input )
         p_input = NULL;
         p_item = NULL;
         assert( !p_input_vbi );
-        emit rateChanged( INPUT_RATE_DEFAULT );
+        emit rateChanged( INPUT_RATE_DEFAULT / var_InheritFloat( p_intf, "rate" ) );
     }
 }
 
@@ -148,7 +148,7 @@ void InputManager::delInput()
     p_input = NULL;
 
     emit positionUpdated( -1.0, 0 ,0 );
-    emit rateChanged( INPUT_RATE_DEFAULT ); /* TODO: Do we want this ? */
+    emit rateChanged( INPUT_RATE_DEFAULT / var_InheritFloat( p_intf, "rate" ) );
     emit nameChanged( "" );
     emit chapterChanged( 0 );
     emit titleChanged( 0 );
@@ -587,7 +587,7 @@ void InputManager::UpdateCaching()
     if( f_newCache != f_cache )
     {
         f_cache = f_newCache;
-        /* Update rate */
+        /* Update cache */
         emit cachingChanged( f_cache );
     }
 }