DescriptionRemove OnMediaResourcesReleased callback passed to MediaPlayerAndroid
This callback has the reentrance issue as calling MediaPlayerBridge::Release() will call into function.
The worst case happens when BrowserMediaPlayerManager dtor is called. In that case, this function will be called on each player, while BMPM is in a partially destroyed state.
Since BMPM controls the lifetime of the players, it can call OnMediaResourcesReleased() when it calls Release() on a player.
For MSE case, we also simplified the situation here since we can check MSP::IsSurfaceInUse(). This CL also fixes that call.
BUG=410096
Committed: https://crrev.com/0b08967cc3c1a8e6bc17921201553bb6d8a7bb90
Cr-Commit-Position: refs/heads/master@{#293207}
Patch Set 1 #
Total comments: 6
Patch Set 2 : addressing comments #Patch Set 3 : make ReleaseMediaResources non-virtual #Messages
Total messages: 9 (3 generated)
|