vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Thu Feb 
18 18:12:43 2016 +0100| [748b744594dbbdc0ec52149c2b6c4b3aca0a22c4] | committer: 
Hugo Beauzée-Luyssen

qt4: input_manager: Always reset lastURI when stopping

This allow the resume where you left off feature to kick in when
starting the playback again, but not when cycling through a playlist
refs #11704

(cherry picked from commit 285a3efcbb4f64ea4d9812d1f94605cef7c65083)
Signed-off-by: Hugo Beauzée-Luyssen <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=748b744594dbbdc0ec52149c2b6c4b3aca0a22c4
---

 modules/gui/qt4/input_manager.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/input_manager.cpp 
b/modules/gui/qt4/input_manager.cpp
index 6734bfd..89f8ba4 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -157,6 +157,7 @@ void InputManager::setInput( input_thread_t *_p_input )
     else
     {
         p_item = NULL;
+        lastURI.clear();
         assert( !p_input_vbi );
         emit rateChanged( var_InheritFloat( p_intf, "rate" ) );
     }
@@ -1122,7 +1123,6 @@ void MainInputManager::probeCurrentInput()
 void MainInputManager::stop()
 {
    playlist_Stop( THEPL );
-   getIM()->lastURI.clear();
 }
 
 void MainInputManager::next()

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to