mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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
This commit is contained in:
parent
bf6e9c6144
commit
fdfbfc0b8e
1 changed files with 0 additions and 4 deletions
|
|
@ -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 {
|
||||||
codecReconfigured = false;
|
codecReconfigured = false;
|
||||||
codecReconfigurationState = RECONFIGURATION_STATE_NONE;
|
codecReconfigurationState = RECONFIGURATION_STATE_NONE;
|
||||||
resetCodecBuffers();
|
resetCodecBuffers();
|
||||||
|
|
||||||
mediaCrypto = null;
|
|
||||||
mediaCryptoRequiresSecureDecoder = false;
|
mediaCryptoRequiresSecureDecoder = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue