]> git.sesse.net Git - vlc/commitdiff
aout: disable recycling for the time being
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 10 Aug 2011 19:40:44 +0000 (22:40 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 10 Aug 2011 19:42:38 +0000 (22:42 +0300)
src/audio_output/dec.c

index fb7340f4ba4ec363345e410193cf62865426ec52..502997fe28be7bb81dc8c5ce022096a742c087d0 100644 (file)
@@ -81,7 +81,7 @@ int aout_DecNew( audio_output_t *p_aout,
     }
 
     aout_owner_t *owner = aout_owner(p_aout);
-
+#ifdef RECYCLE
     /* Calling decoder is responsible for serializing aout_DecNew() and
      * aout_DecDelete(). So no need to lock to _read_ those properties. */
     if (owner->module != NULL) /* <- output exists */
@@ -96,7 +96,7 @@ int aout_DecNew( audio_output_t *p_aout,
         /* No recycling: delete everything and restart from scratch */
         aout_Shutdown (p_aout);
     }
-
+#endif
     int ret = -1;
 
     /* TODO: reduce lock scope depending on decoder's real need */
@@ -177,7 +177,11 @@ void aout_DecDelete (audio_output_t *aout)
     aout_owner_t *owner = aout_owner (aout);
 
     assert (owner->module != NULL);
+#ifdef RECYCLE
     (void) owner;
+#else
+    aout_Shutdown (aout);
+#endif
 }
 
 #define AOUT_RESTART_OUTPUT 1