[vlc-commits] aout: remove dead code
Rémi Denis-Courmont
git at videolan.org
Thu Aug 9 19:34:03 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 9 20:15:59 2012 +0300| [0d7be541f6520b638799656f27c2b8a7321db512] | committer: Rémi Denis-Courmont
aout: remove dead code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d7be541f6520b638799656f27c2b8a7321db512
---
src/audio_output/input.c | 31 -------------------------------
1 file changed, 31 deletions(-)
diff --git a/src/audio_output/input.c b/src/audio_output/input.c
index c7c2d7a..c045856 100644
--- a/src/audio_output/input.c
+++ b/src/audio_output/input.c
@@ -329,8 +329,6 @@ int aout_InputDelete( audio_output_t * p_aout, aout_input_t * p_input )
*****************************************************************************
* This function must be entered with the input lock.
*****************************************************************************/
-/* XXX Do not activate it !! */
-//#define AOUT_PROCESS_BEFORE_CHEKS
block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
block_t *p_buffer, int i_input_rate, date_t *date )
{
@@ -344,31 +342,6 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
return NULL;
}
-#ifdef AOUT_PROCESS_BEFORE_CHEKS
- /* Run pre-filters. */
- aout_FiltersPlay( p_aout, p_input->pp_filters, p_input->i_nb_filters,
- &p_buffer );
- if( !p_buffer )
- return NULL;
-
- /* Actually run the resampler now. */
- if ( p_input->i_nb_resamplers > 0 )
- {
- const mtime_t i_date = p_buffer->i_pts;
- aout_FiltersPlay( p_aout, p_input->pp_resamplers,
- p_input->i_nb_resamplers,
- &p_buffer );
- }
-
- if( !p_buffer )
- return NULL;
- if( p_buffer->i_nb_samples <= 0 )
- {
- block_Release( p_buffer );
- return NULL;
- }
-#endif
-
/* Handle input rate change, but keep drift correction */
if( i_input_rate != p_input->i_last_input_rate )
{
@@ -445,12 +418,10 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
return NULL;
}
-#ifndef AOUT_PROCESS_BEFORE_CHEKS
/* Run pre-filters. */
aout_FiltersPlay( p_input->pp_filters, p_input->i_nb_filters, &p_buffer );
if( !p_buffer )
return NULL;
-#endif
/* Run the resampler if needed.
* We first need to calculate the output rate of this resampler. */
@@ -522,7 +493,6 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
}
}
-#ifndef AOUT_PROCESS_BEFORE_CHEKS
/* Actually run the resampler now. */
if ( p_input->i_nb_resamplers > 0 )
{
@@ -537,7 +507,6 @@ block_t *aout_InputPlay(audio_output_t *p_aout, aout_input_t *p_input,
block_Release( p_buffer );
return NULL;
}
-#endif
p_buffer->i_pts = start_date;
return p_buffer;
More information about the vlc-commits
mailing list