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

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: Set audible status on Pause() instead 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..ca130892b55bce020479d245d27a59ca29177035 100644
--- a/media/base/android/media_source_player.cc
+++ b/media/base/android/media_source_player.cc
@@ -134,6 +134,8 @@ void MediaSourcePlayer::Pause(bool is_media_related_action) {
// MediaDecoderCallback() is called.
playing_ = false;
start_time_ticks_ = base::TimeTicks();
+
+ SetAudible(false);
}
bool MediaSourcePlayer::IsPlaying() {
« 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