[vlc-commits] Qt: InputManager: don't enforce lower bound after a seek

Francois Cartegnie git at videolan.org
Mon Nov 25 13:47:17 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 25 13:41:58 2013 +0100| [9baab2bdeb1667061b98399b407b7434f0dbb36e] | committer: Francois Cartegnie

Qt: InputManager: don't enforce lower bound after a seek

Should fix problems like #2243.
After a seek, the updated position could be the keyframe position
choosen by demux, and then lower than A.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9baab2bdeb1667061b98399b407b7434f0dbb36e
---

 modules/gui/qt4/input_manager.cpp |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index f608c9d..43526bd 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -951,11 +951,8 @@ void InputManager::setAtoB()
 /* Function called regularly when in an AtoB loop */
 void InputManager::AtoBLoop( float, int64_t i_time, int )
 {
-    if( timeB )
-    {
-        if( i_time >= timeB || i_time < timeA )
-            var_SetTime( THEMIM->getInput(), "time" , timeA );
-    }
+    if( timeB && i_time >= timeB )
+        var_SetTime( THEMIM->getInput(), "time" , timeA );
 }
 
 /**********************************************************************



More information about the vlc-commits mailing list