Commit a989304a by tonihei Committed by Oliver Woodman

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
parent 68ef1d3e
......@@ -980,6 +980,7 @@ public class SimpleExoPlayer extends BasePlayer
@Override
public void release() {
verifyApplicationThread();
audioFocusManager.handleStop();
player.release();
removeSurfaceCallbacks();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment