Don't crash
authorClément Stenac <zorglub@videolan.org>
Wed, 31 May 2006 21:48:31 +0000 (21:48 +0000)
committerClément Stenac <zorglub@videolan.org>
Wed, 31 May 2006 21:48:31 +0000 (21:48 +0000)
modules/gui/qt4/input_manager.cpp

index e045a77..96075a4 100644 (file)
@@ -63,5 +63,6 @@ void InputManager::update()
 
 void InputManager::sliderUpdate( float new_pos )
 {
-   var_SetFloat( p_input, "position", new_pos );
+   if( p_input && !p_input->b_die && !p_input->b_dead )
+        var_SetFloat( p_input, "position", new_pos );
 }