[vlc-devel] [PATCH]intf.c mutex conflict when switch left/rightaudio channel(update)

Colin colin_sh at 163.com
Wed Dec 31 08:22:00 CET 2008


Thank you for advice, I have modified the file. And I post the modified patch here again.

--- rpmbuild/BUILD/vlc-0.9.8a/src/audio_output/intf.c   2008-10-16 03:19:41.000000000 +0800
+++ vlc-0.9.8a/src/audio_output/intf.c  2008-12-21 20:40:14.000000000 +0800
@@ -378,15 +378,17 @@ static int aout_Restart( aout_instance_t
         return -1;
     }

-    /* Lock all inputs. */
-    aout_lock_input_fifos( p_aout );
-
     for ( i = 0; i < p_aout->i_nb_inputs; i++ )
     {
         aout_lock_input( p_aout, p_aout->pp_inputs[i] );
+        aout_lock_input_fifos( p_aout );
         aout_InputDelete( p_aout, p_aout->pp_inputs[i] );
+        aout_unlock_input_fifos( p_aout );
     }

+    /* Lock all inputs. */
+    aout_lock_input_fifos( p_aout );
+
     aout_MixerDelete( p_aout );

     /* Re-open the output plug-in. */


----- Original Message ----- 
From: "Rémi Denis-Courmont" <rem at videolan.org>
To: "Mailing list for VLC media player developers" <vlc-devel at videolan.org>
Sent: Saturday, December 20, 2008 3:54 AM
Subject: Re: [vlc-devel] [PATCH]intf.c mutex conflict when switch left/rightaudio channel



More information about the vlc-devel mailing list