media/libraries/exoplayer/src
rohks 6236fd38d0 Fix sending negative bufferedDurationUs to CmcdData.Factory
When track is changed during playback, `playbackPositionUs` may be in middle of a chunk and `loadPositionUs` should be the start of that chunk. In this situation `loadPositionUs` can be less than the current `playbackPositionUs`, resulting into negative `bufferedDurationUs`. It translates to having no buffer and hence we should send `0` for `bufferedDurationUs` when creating new instances of `CmcdData.Factory`.

Issue: androidx/media#888

#minor-release

PiperOrigin-RevId: 591099785
(cherry picked from commit 7f6596bab2)
2024-01-09 12:17:48 +00:00
..
androidTest Move DefaultImageDecoderTest in tests 2023-09-21 03:53:42 -07:00
main Fix sending negative bufferedDurationUs to CmcdData.Factory 2024-01-09 12:17:48 +00:00
test Merge pull request #753 from stevemayhew:p-fix-issue-9347 2024-01-09 12:17:39 +00:00