diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-08-24 22:19:49 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-29 21:00:30 -0500 |
commit | fa3b78583fe1d9325cfa43dcee63968f911a1cc4 (patch) | |
tree | ecffcef1eb9d2f86d913820c5f5dee594bb3e6d4 /youtube/static/dark_theme.css | |
parent | d942883c786e308d4f15f4edd0d62963789e0482 (diff) | |
download | yt-local-fa3b78583fe1d9325cfa43dcee63968f911a1cc4.tar.lz yt-local-fa3b78583fe1d9325cfa43dcee63968f911a1cc4.tar.xz yt-local-fa3b78583fe1d9325cfa43dcee63968f911a1cc4.zip |
avmerge: Close streams to avoid errors while changing quality
If a fetchRange network request finished after the quality was
changed, there would be a "InvalidStateError: An attempt was made
to use an object that is not, or is no longer, usable" because
appendSegment was trying to append to the sourceBuffer that was
unusable after the video src was changed to a new mediaSource.
Adds a close method to the AVMerge class to properly clean and
close everything so these sorts of errors won't happen.
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/static/dark_theme.css')
0 files changed, 0 insertions, 0 deletions