[vlc-devel] commit: input state: don't delete non existing callbacks ( Rafaël Carré )

git version control git at videolan.org
Mon Aug 31 16:58:13 CEST 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Aug 31 16:57:12 2009 +0200| [6b3892f7cf243a2f9c2dd9fc348577b7c99b9e33] | committer: Rafaël Carré 

input state: don't delete non existing callbacks

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

 src/input/var.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/input/var.c b/src/input/var.c
index 8352629..21d7c37 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -241,7 +241,8 @@ void input_ControlVarInit ( 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 )
     {




More information about the vlc-devel mailing list