mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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
|
@Override
|
||||||
public void release() {
|
public void release() {
|
||||||
|
verifyApplicationThread();
|
||||||
audioFocusManager.handleStop();
|
audioFocusManager.handleStop();
|
||||||
player.release();
|
player.release();
|
||||||
removeSurfaceCallbacks();
|
removeSurfaceCallbacks();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue