Commit fdfbfc0b by olly Committed by Oliver Woodman

Cleanup codec state reset methods in MediaCodecRenderer

- Remove duplicated null assignments
- Move mediaCryptoRequiresSecureDecoder reset to be with all the
  other mediaCrypto stuff.

PiperOrigin-RevId: 285955134
parent bf6e9c61
......@@ -840,10 +840,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
resetCodecStateForFlush();
availableCodecInfos = null;
codec = null;
codecInfo = null;
codecFormat = null;
codecAdapter = null;
codecOperatingRate = CODEC_OPERATING_RATE_UNSET;
codecAdaptationWorkaroundMode = ADAPTATION_WORKAROUND_MODE_NEVER;
codecNeedsReconfigureWorkaround = false;
......@@ -856,8 +854,6 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
codecReconfigured = false;
codecReconfigurationState = RECONFIGURATION_STATE_NONE;
resetCodecBuffers();
mediaCrypto = null;
mediaCryptoRequiresSecureDecoder = false;
}
......
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