Commit 032bb049 by ibaker Committed by Oliver Woodman

Move FakeRenderer's DrmSession releasing from onReset() to onDisable()

This seems to match DecoderVideoRenderer more closely:
https://github.com/google/ExoPlayer/blob/b1e56304a1fda8075fc637074927c0886f49fdf1/library/core/src/main/java/com/google/android/exoplayer2/video/DecoderVideoRenderer.java#L300

Although MediaCodecRenderer does it in onReset() and then calls that
from onDisable():
https://github.com/google/ExoPlayer/blob/b1e56304a1fda8075fc637074927c0886f49fdf1/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java#L754

PiperOrigin-RevId: 315859212
parent 88b36abc
......@@ -154,7 +154,7 @@ public class FakeRenderer extends BaseRenderer {
}
@Override
protected void onReset() {
protected void onDisabled() {
if (currentDrmSession != null) {
currentDrmSession.release(/* eventDispatcher= */ null);
currentDrmSession = null;
......
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