media/libraries/exoplayer/src
tonihei e0191ddded Fix spurious sessions created for events after the playlist is cleared
Some events may arrive after the playlist is cleared (e.g. load
cancellation). In this case, the DefaultPlaybackSessionManager may
create a new session for the already removed item.

We already have checks in place that ignore events with old
windowSequenceNumbers, but these checks only work if the current
session is set (i.e. the playlist is non-empty). The fix is to add
the same check for empty playlists by keeping note of the last
removed window sequence number.

PiperOrigin-RevId: 541870812
2023-06-20 14:08:06 +01:00
..
androidTest Extend Player interface, overloading 4 device-volume methods with flags 2023-04-13 16:30:30 +01:00
main Fix spurious sessions created for events after the playlist is cleared 2023-06-20 14:08:06 +01:00
test Fix spurious sessions created for events after the playlist is cleared 2023-06-20 14:08:06 +01:00