mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
a4e348da7b
There was a small bug in the cue updater that was causing our workaround for #2076 to trigger repeatably. It turns out that the code that detected if the cue was being successfully removed mistakenly thought that, if a cue was removed, its nested cues weren't removed. This refactors the cue updating code so that it will remove nested cues, even if they go away at the same time as the parent cue. With this change, the actual performance of the code is no different, but we can make the workaround for #2076 become an assert, as we had wanted earlier. Change-Id: Ia81068b60a42e3f25cb978cd3105d667a42a7da5