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

Despite unregistering the callback and clearing pending Handler messages, the callback may still receive pending calls if they are already triggered by the AudioTrack. Instead of asserting that the track is correct, we should gracefully ignore stale events. PiperOrigin-RevId: 463851393 (cherry picked from commit 3650c2970aebab16a1ced17f849631cea452085b)