Fix chapters not clearing when new file with no chapters is loaded

This commit is contained in:
Tomas Sardyha
2020-05-04 10:03:50 +02:00
parent 1d35b79a0a
commit 2028cce04d

View File

@@ -2862,7 +2862,7 @@ options.timeline_cached_ranges = (function()
end)()
-- HOOKS
mp.register_event('file-loaded', parse_chapters)
mp.observe_property('chapter-list', 'native', parse_chapters)
mp.observe_property('duration', 'number', create_state_setter('duration'))
mp.observe_property('media-title', 'string', create_state_setter('media_title'))