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.
TBR=sievers
BUG=540990
Review URL: https://codereview.chromium.org/1398703003
Cr-Commit-Position: refs/heads/master@{#353219}
(cherry picked from commit ddcd5f8b7c909bd437576411498008d4450239da)
Throttle media decoding after excessive Android media server crashes
This change adds a watch dog player to listen to android MediaServer
crashes.
When the number of crashes reaches a certain threshold,
all media decoding using Android MediaPlayer/MediaCodec will be throttled.
This will throttle both media and webaudio implementation.
BUG=532745
Review URL: https://codereview.chromium.org/1372203002
Cr-Commit-Position: refs/heads/master@{#352740}
(cherry picked from commit b2341d25796fe6f94fb9a2d00104f2f88ca67a7c)
Committed: https://chromium.googlesource.com/chromium/src/+/83a90d3befcb37b68620d63782be6c4283cd697b
Patch Set 1 : #
Messages
Total messages: 2 (1 generated)
|
||||||||||||||||||||||||||||