mirror of
https://github.com/androidx/media.git
synced 2025-05-04 06:00:37 +08:00

This fixes a case where updateCodecOperatingRate would configure the decoder to be drained and then released, only for onInputFormatChanged to override the drain action with something else. We've not seen any reports of this issue, which suggests that either it's OK to not release the decoder in such cases, or that the case doesn't happen very often. I suspect that it's both, but let's restore the intended behaviour for now. PiperOrigin-RevId: 340909132