Commit 87908cfd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout_OutputNextBuffer: do not dequeue when paused

This greatly reduces the latency when pausing a legacy audio output.
Unfortunately, the audio output will keep polling for buffers though.
parent 1c0768d9
......@@ -613,10 +613,12 @@ aout_buffer_t * aout_OutputNextBuffer( audio_output_t * p_aout,
aout_packet_t *p = aout_packet (p_aout);
aout_fifo_t *p_fifo = &p->fifo;
aout_buffer_t * p_buffer;
aout_buffer_t *p_buffer = NULL;
mtime_t now = mdate();
vlc_mutex_lock( &p->lock );
if( p->pause_date != VLC_TS_INVALID )
goto out;
/* Drop the audio sample if the audio output is really late.
* In the case of b_can_sleek, we don't use a resampler so we need to be
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment