]> git.sesse.net Git - vlc/commitdiff
Moved unlock in the if structure. This suppresses the dead_lock which
authorLoïc Minier <lool@videolan.org>
Sun, 21 Oct 2001 23:17:03 +0000 (23:17 +0000)
committerLoïc Minier <lool@videolan.org>
Sun, 21 Oct 2001 23:17:03 +0000 (23:17 +0000)
was crashing the windows port in TS_input.

The audio still segfaults.

src/input/mpeg_system.c

index caee8fb028dee83fd2e050afb33d9718352cf52c..aab8a6d21695eb6e12df1d767ba184cccbe3f7e3 100644 (file)
@@ -2,7 +2,7 @@
  * mpeg_system.c: TS, PS and PES management
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: mpeg_system.c,v 1.59 2001/10/01 16:18:48 massiot Exp $
+ * $Id: mpeg_system.c,v 1.60 2001/10/21 23:17:03 lool Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Michel Lespinasse <walken@via.ecp.fr>
@@ -1550,10 +1550,9 @@ static void input_DecodePMT( input_thread_t * p_input, es_descriptor_t * p_es )
 
         /* inform interface that stream has changed */
         p_input->stream.b_changed = 1;
+        /*  Remove lock */
+        vlc_mutex_unlock( &p_input->stream.stream_lock );
     }
     
 #undef p_psi
-
-    /*  Remove lock */
-    vlc_mutex_unlock( &p_input->stream.stream_lock );
 }