]> git.sesse.net Git - vlc/commitdiff
Complete audio locking rules
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Nov 2009 11:13:28 +0000 (13:13 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Nov 2009 11:17:39 +0000 (13:17 +0200)
src/audio_output/common.c

index 585b7710124809ae1b067f0beb01117cd4553f59..c1b199c3a560796f1f8c25acc52c64827d72d9c7 100644 (file)
@@ -117,10 +117,10 @@ static void aout_Destructor( vlc_object_t * p_this )
 /* Lock ordering rules:
  *
  *            Mixer Input IFIFO OFIFO (< Inner lock)
- * Mixer       No!   N/A   Yes   Yes
- * Input       N/A   No!   Yes   N/A
+ * Mixer       No!   Yes   Yes   Yes
+ * Input       No!   No!   Yes   Yes
  * In FIFOs    No!   No!   No!   Yes
- * Out FIFOs   No!   N/A   No!   No!
+ * Out FIFOs   No!   No!   No!   No!
  * (^ Outer lock)
  */
 #ifdef AOUT_DEBUG
@@ -136,13 +136,13 @@ void aout_lock (unsigned i)
             allowed = 0;
             break;
         case INPUT_LOCK:
-            allowed = 0;
+            allowed = MIXER_LOCK;
             break;
         case INPUT_FIFO_LOCK:
             allowed = MIXER_LOCK|INPUT_LOCK;
             break;
         case OUTPUT_FIFO_LOCK:
-            allowed = MIXER_LOCK|INPUT_FIFO_LOCK;
+            allowed = MIXER_LOCK|INPUT_LOCK|INPUT_FIFO_LOCK;
             break;
     }