Changeset 6c0ef07de2913906b2ab33d97c11a48eccdde110

Show
Ignore:
Timestamp:
20/01/05 16:28:56 (4 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1106234936 +0000
git-parent:

[52ccf5a03bd7fcedd8a7bf27fb29abd8c0a46fc5]

git-author:
Gildas Bazin <gbazin@videolan.org> 1106234936 +0000
Message:

* src/audio_output/output.c: skip late buffers in b_can_sleek mode (patch courtesy of )

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/audio_output/output.c

    r78cb02e r6c0ef07  
    276276 
    277277    p_buffer = p_aout->output.fifo.p_first; 
    278     while ( p_buffer && p_buffer->start_date < mdate() - AOUT_PTS_TOLERANCE ) 
     278 
     279    /* Drop the audio sample if the audio output is really late. 
     280     * In the case of b_can_sleek, we don't use a resampler so we need to be 
     281     * a lot more severe. */ 
     282    while ( p_buffer && p_buffer->start_date < 
     283            (b_can_sleek ? start_date : mdate()) - AOUT_PTS_TOLERANCE ) 
    279284    { 
    280285        msg_Dbg( p_aout, "audio output is too slow ("I64Fd"), "