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