input state: don't delete non existing callbacks
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 31 Aug 2009 14:57:12 +0000 (16:57 +0200)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 31 Aug 2009 14:57:12 +0000 (16:57 +0200)
src/input/var.c

index 8352629..21d7c37 100644 (file)
@@ -241,7 +241,8 @@ void input_ControlVarInit ( input_thread_t *p_input )
  *****************************************************************************/
 void input_ControlVarStop( input_thread_t *p_input )
 {
  *****************************************************************************/
 void input_ControlVarStop( input_thread_t *p_input )
 {
-    InputDelCallbacks( p_input, p_input_callbacks );
+    if( !p_input->b_preparsing )
+        InputDelCallbacks( p_input, p_input_callbacks );
 
     if( p_input->p->i_title > 0 )
     {
 
     if( p_input->p->i_title > 0 )
     {