mirror of
https://github.com/samsonjs/media.git
synced 2026-04-13 12:35:48 +00:00
Add missing thread verification to SimpleExoPlayer.release().
This call also needs to be made from the right thread to prevent messages from getting lost and causing ANRs. PiperOrigin-RevId: 239564573
This commit is contained in:
parent
68ef1d3e97
commit
a989304a4d
1 changed files with 1 additions and 0 deletions
|
|
@ -980,6 +980,7 @@ public class SimpleExoPlayer extends BasePlayer
|
|||
|
||||
@Override
|
||||
public void release() {
|
||||
verifyApplicationThread();
|
||||
audioFocusManager.handleStop();
|
||||
player.release();
|
||||
removeSurfaceCallbacks();
|
||||
|
|
|
|||
Loading…
Reference in a new issue