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

Issue 1398703003: Fix an issue that an invalid surface could be passed to MediaPlayerBridge (Closed)

Created:
5 years, 2 months ago by qinmin
Modified:
5 years, 2 months ago
Reviewers:
no sievers
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, avayvod+watch_chromium.org, mcasas+watch_chromium.org, mlamouri+watch-media_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix an issue that an invalid surface could be passed to MediaPlayerBridge When entering fullscreen, setVideoSurface() can be called before OnMediaPrepared(). It is then possible that user immediately exits fullscreen video. In that case, when onMediaPrepared() is called, the surface is already released. We need to check whether a surface is valid or not before passing it to MediaPlayer. BUG=540990 Committed: https://crrev.com/ddcd5f8b7c909bd437576411498008d4450239da Cr-Commit-Position: refs/heads/master@{#353219}

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
M media/base/android/media_player_bridge.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M ui/gl/android/scoped_java_surface.h View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
qinmin
PTAL
5 years, 2 months ago (2015-10-08 21:53:55 UTC) #2
no sievers
https://codereview.chromium.org/1398703003/diff/1/media/base/android/media_player_bridge.cc File media/base/android/media_player_bridge.cc (right): https://codereview.chromium.org/1398703003/diff/1/media/base/android/media_player_bridge.cc#newcode112 media/base/android/media_player_bridge.cc:112: surface_ = surface.IsValid() ? surface.Pass() : gfx::ScopedJavaSurface(); Should we ...
5 years, 2 months ago (2015-10-08 23:00:27 UTC) #3
qinmin
https://codereview.chromium.org/1398703003/diff/1/media/base/android/media_player_bridge.cc File media/base/android/media_player_bridge.cc (right): https://codereview.chromium.org/1398703003/diff/1/media/base/android/media_player_bridge.cc#newcode112 media/base/android/media_player_bridge.cc:112: surface_ = surface.IsValid() ? surface.Pass() : gfx::ScopedJavaSurface(); On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 23:47:23 UTC) #4
no sievers
lgtm
5 years, 2 months ago (2015-10-09 00:10:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398703003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398703003/20001
5 years, 2 months ago (2015-10-09 00:25:10 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-09 03:04:05 UTC) #8
commit-bot: I haz the power
5 years, 2 months ago (2015-10-09 03:05:37 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ddcd5f8b7c909bd437576411498008d4450239da
Cr-Commit-Position: refs/heads/master@{#353219}

Powered by Google App Engine
This is Rietveld 408576698