• timav's avatar
    Set audible status to false if audio is stopped after prefetch. · 9bf805c1
    timav authored
    We discovered an audio playing site that often triggers
    the starvation condition during the playback. This introduces
    a race between Pause , starvation detecton and the MediaDecoderCallback.
    If starvation detection happens between Pause and the callback,
    we will do Prefetch and then stop the flow of packets,
    and won't update the audible status properly.
    
    This fix sets the audible status to false in OnPrefetchDone()
    if we realize that the flow will stop.
    
    BUG=474761
    
    Review URL: https://codereview.chromium.org/1067153002
    
    Cr-Commit-Position: refs/heads/master@{#327336}
    9bf805c1
media_source_player.cc 26.4 KB