[vlc-commits] commit: Qt4: don't reset rate when input changes (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Sun Sep 12 22:08:08 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Sep 12 23:05:56 2010 +0300| [21ad24ea6b641038a8a95d4a33b817fcfea02820] | committer: Ilkka Ollakka
Qt4: don't reset rate when input changes
Maybe littlebit hackis implementation and core could be better place to
implement this.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=21ad24ea6b641038a8a95d4a33b817fcfea02820
---
modules/gui/qt4/input_manager.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index ebcc032..516105c 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -81,7 +81,7 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
artUrl = "";
p_input = NULL;
p_input_vbi = NULL;
- f_rate = 0.;
+ f_rate = 1.;
p_item = NULL;
b_video = false;
timeA = 0;
@@ -114,7 +114,9 @@ void InputManager::setInput( input_thread_t *_p_input )
UpdateVout();
p_item = input_GetItem( p_input );
- emit rateChanged( var_GetFloat( p_input, "rate" ) );
+
+ var_SetFloat( p_input, "rate", f_rate );
+ emit rateChanged( f_rate );
}
else
{
@@ -141,7 +143,6 @@ void InputManager::delInput()
b_video = false;
timeA = 0;
timeB = 0;
- f_rate = 0. ;
if( p_input_vbi )
{
More information about the vlc-commits
mailing list