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

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

Issue 296393007: [Android] Fix the issue of muted attribute in video element does not work. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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_player_bridge.cc
diff --git a/media/base/android/media_player_bridge.cc b/media/base/android/media_player_bridge.cc
index b1bb3fec3cfa5ecf8d3b64a105717a5d9083747f..09ed254d2b55bab7b9d24fdb99f3d2cb548972a4 100644
--- a/media/base/android/media_player_bridge.cc
+++ b/media/base/android/media_player_bridge.cc
@@ -324,7 +324,7 @@ void MediaPlayerBridge::Release() {
void MediaPlayerBridge::SetVolume(double volume) {
if (j_media_player_bridge_.is_null())
- return;
+ Prepare();
qinmin 2014/05/27 15:09:53 The player could get destroyed if releaseMediaReso
JNIEnv* env = base::android::AttachCurrentThread();
CHECK(env);
« 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