diff options
author | Retusthese <84878539+Retusthese@users.noreply.github.com> | 2021-05-26 21:15:16 -0400 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2021-05-27 09:12:38 +0300 |
commit | 6abb7e385f8f2f22511da13fe506a2cbdf7f5584 (patch) | |
tree | ed072f6db1ca106fa04b223f03998904967f8d07 /video | |
parent | c68b9424d69a6e74bea46e283eca18de6596d51f (diff) | |
download | mpv-6abb7e385f8f2f22511da13fe506a2cbdf7f5584.tar.bz2 mpv-6abb7e385f8f2f22511da13fe506a2cbdf7f5584.tar.xz |
osc: re-initialize when chapter list changes
When the OSC initializes, it checks whether the current video has
chapters, and if it does not, it disables its chapter functionality
(chapter buttons are grayed out and unusable, chapter indicators don't
show on the seek bar). If another script changed the chapter list
after the video has loaded, those changes would be ignored by the OSC
until some other event causes it to re-initialize, because it did not
observe the chapter list property. This is fixed by adding
observation of chapter-list alongside the other properties that
trigger re-initialization.
Diffstat (limited to 'video')
0 files changed, 0 insertions, 0 deletions