Drop audio when playing faster and not using resampler.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 12 Jun 2007 19:49:06 +0000 (19:49 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 12 Jun 2007 19:49:06 +0000 (19:49 +0000)
src/audio_output/input.c

index 5ffdbcc..7dccea0 100644 (file)
@@ -426,6 +426,12 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
         vlc_mutex_unlock( &p_aout->mixer_lock );
     }
 
+    if( i_input_rate != INPUT_RATE_DEFAULT && p_input->i_nb_resamplers <= 0 )
+    {
+        inputDrop( p_aout, p_input, p_buffer );
+        return 0;
+    }
+
 #ifdef AOUT_PROCESS_BEFORE_CHEKS
     /* Run pre-filters. */
     aout_FiltersPlay( p_aout, p_input->pp_filters, p_input->i_nb_filters,