[vlc-commits] Qt: avoid a crash

Jean-Baptiste Kempf git at videolan.org
Mon Aug 20 15:24:44 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug 20 15:24:03 2012 +0200| [2ffcdf8b86de297f25074ec337c64d0c371db078] | committer: Jean-Baptiste Kempf

Qt: avoid a crash

Close #6466

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

 modules/gui/qt4/actions_manager.cpp |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/actions_manager.cpp b/modules/gui/qt4/actions_manager.cpp
index 00c8dfe..cd92fe9 100644
--- a/modules/gui/qt4/actions_manager.cpp
+++ b/modules/gui/qt4/actions_manager.cpp
@@ -194,11 +194,15 @@ void ActionsManager::AudioDown()
 
 void ActionsManager::skipForward()
 {
-    THEMIM->getIM()->jumpFwd();
+    input_thread_t *p_input = THEMIM->getInput();
+    if( p_input )
+        THEMIM->getIM()->jumpFwd();
 }
 
 void ActionsManager::skipBackward()
 {
-    THEMIM->getIM()->jumpBwd();
+    input_thread_t *p_input = THEMIM->getInput();
+    if( p_input )
+        THEMIM->getIM()->jumpBwd();
 }
 



More information about the vlc-commits mailing list