Set audible status to false if audio is stopped after prefetch.
commit9bf805c15752621d68d562f2acfa3e71f98f5593
authortimav <timav@chromium.org>
Tue, 28 Apr 2015 18:35:58 +0000 (28 11:35 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Apr 2015 18:36:31 +0000 (28 18:36 +0000)
treee05c55aad287113a07ad3ef9207cdf2e01673e17
parent72928bb9aadd5c99114ca18ad2518d2641c86447
Set audible status to false if audio is stopped after prefetch.

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}
media/base/android/media_source_player.cc