]> git.sesse.net Git - vlc/commitdiff
Revert "Qt4: don't reset rate when input changes"
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 14 Sep 2010 20:48:21 +0000 (23:48 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 14 Sep 2010 20:48:41 +0000 (23:48 +0300)
This reverts commit 21ad24ea6b641038a8a95d4a33b817fcfea02820.

I'll try to do it properly in core

modules/gui/qt4/input_manager.cpp

index 516105ca7f0306225a60b501776cc5899ea382f2..ebcc032612391b0ac1282d2e62601586af2f0221 100644 (file)
@@ -81,7 +81,7 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
     artUrl       = "";
     p_input      = NULL;
     p_input_vbi  = NULL;
-    f_rate       = 1.;
+    f_rate       = 0.;
     p_item       = NULL;
     b_video      = false;
     timeA        = 0;
@@ -114,9 +114,7 @@ void InputManager::setInput( input_thread_t *_p_input )
         UpdateVout();
 
         p_item = input_GetItem( p_input );
-
-        var_SetFloat( p_input, "rate", f_rate );
-        emit rateChanged( f_rate );
+        emit rateChanged( var_GetFloat( p_input, "rate" ) );
     }
     else
     {
@@ -143,6 +141,7 @@ void InputManager::delInput()
     b_video              = false;
     timeA                = 0;
     timeB                = 0;
+    f_rate               = 0. ;
 
     if( p_input_vbi )
     {