]> git.sesse.net Git - vlc/commitdiff
Remove constant { true } aout_instance_t.mixer_allocation
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 30 May 2011 16:51:03 +0000 (19:51 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 30 May 2011 16:51:20 +0000 (19:51 +0300)
include/vlc_aout.h
include/vlc_aout_mixer.h
modules/audio_mixer/spdif.c
src/audio_output/mixer.c
src/audio_output/output.c

index 6fcb809e05f9915f42e9983c608522f15586c91a..1016794a59309c2ca61fe5990596cdfe585cc681 100644 (file)
@@ -134,12 +134,6 @@ typedef int32_t vlc_fixed_t;
 /* Max input rate factor (1/4 -> 4) */
 #define AOUT_MAX_INPUT_RATE (4)
 
-/** allocation of memory in the audio output */
-typedef struct aout_alloc_t
-{
-    bool                    b_alloc;
-} aout_alloc_t;
-
 /** audio output buffer FIFO */
 struct aout_fifo_t
 {
@@ -206,7 +200,6 @@ struct aout_instance_t
 
     /* Mixer */
     audio_sample_format_t   mixer_format;
-    aout_alloc_t            mixer_allocation;
     float                   mixer_multiplier;
     struct aout_mixer_t    *p_mixer;
 
index 10d80fe5be7333e1136a3c0f878aa9f3efbef876..fbe55ce9ce32a19364dad439e381728dd7b034c4 100644 (file)
@@ -76,7 +76,7 @@ struct aout_mixer_t {
      *
      * You can override it in the open function only.
      */
-    aout_alloc_t          allocation;
+    bool b_alloc;
 
     /* Multiplier used to raise or lower the volume of the sound in
      * software.
index 5accc7e186e3ae7f4b6f9af065897a7b8fb1b23f..253dfae5d133198e41482c7f975db674c5ea941d 100644 (file)
@@ -69,7 +69,7 @@ static int Create( vlc_object_t *p_this )
     p_mixer->mix = DoWork;
     /* This is a bit kludgy - do not ask for a new buffer, since the one
      * provided by the first input will be good enough. */
-    p_mixer->allocation.b_alloc = false;
+    p_mixer->b_alloc = false;
 
     return 0;
 }
index 78537adfee24fb58faafa718061480f41cfcb307..90e396c59c6ff0425b1f9f07a9524bf15d01f20b 100644 (file)
@@ -51,7 +51,7 @@ int aout_MixerNew( aout_instance_t * p_aout )
         return VLC_EGENERIC;
 
     p_mixer->fmt = p_aout->mixer_format;
-    p_mixer->allocation = p_aout->mixer_allocation;
+    p_mixer->b_alloc = true;
     p_mixer->multiplier = p_aout->mixer_multiplier;
     p_mixer->input = &p_aout->pp_inputs[0]->mixer;
     p_mixer->mix = NULL;
@@ -323,7 +323,7 @@ static int MixBuffer( aout_instance_t * p_aout )
     /* Run the mixer. */
     aout_buffer_t * p_outbuf;
 
-    if( p_aout->p_mixer->allocation.b_alloc )
+    if( p_aout->p_mixer->b_alloc )
     {
         p_outbuf = block_Alloc( p_aout->output.i_nb_samples
                               * p_aout->p_mixer->fmt.i_bytes_per_frame
index c2a45171b34a688e0310224a83f7c17d26a541ba..6fe20e20ee659f7869d563d90cfd01d0c65745e8 100644 (file)
@@ -196,9 +196,6 @@ int aout_OutputNew( aout_instance_t * p_aout,
         p_aout->output.p_module = NULL;
         return -1;
     }
-
-    /* Prepare hints for the buffer allocator. */
-    p_aout->mixer_allocation.b_alloc = true;
     return 0;
 }