]> git.sesse.net Git - vlc/commitdiff
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 e045a7768491c8e9a9b26b820f106afc0eb16eff..96075a4ea6b45f9aa86785dbcbcfffcae1772a57 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 );
 }