Chromium Code Reviews
DescriptionFix 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 #
Messages
Total messages: 9 (2 generated)
|
||||||||||||||||||||||||||||