Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: media/base/android/media_source_player.cc

Issue 1067153002: Set audible status to false if audio is stopped after prefetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_source_player.cc
diff --git a/media/base/android/media_source_player.cc b/media/base/android/media_source_player.cc
index 52ea7db11af5e240a43ecd86a598cb99d6320db6..ef0577993322a4264080d94b88f712e6028f605c 100644
--- a/media/base/android/media_source_player.cc
+++ b/media/base/android/media_source_player.cc
@@ -728,8 +728,10 @@ void MediaSourcePlayer::OnPrefetchDone() {
return;
}
- if (!playing_)
+ if (!playing_) {
+ SetAudible(false);
return;
+ }
start_time_ticks_ = base::TimeTicks::Now();
start_presentation_timestamp_ = GetCurrentTime();
@@ -738,6 +740,9 @@ void MediaSourcePlayer::OnPrefetchDone() {
if (!AudioFinished())
DecodeMoreAudio();
+ else
+ SetAudible(false);
+
if (!VideoFinished())
DecodeMoreVideo();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698