Skip to content

Commit 75c9f65

Browse files
author
blank_name
committed
Don't try to update thumbnail progress before Thumbnailer.state has been initialized.
1 parent b82d752 commit 75c9f65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/thumbnailer_shared.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ function Thumbnailer:register_client()
265265
self:on_thumb_ready(tonumber(index), path)
266266
end)
267267
mp.register_script_message("mpv_thumbnail_script-progress", function(index, path)
268-
self:on_thumb_progress(tonumber(index), path)
268+
if self.state.ready then
269+
self:on_thumb_progress(tonumber(index), path)
270+
end
269271
end)
270272

271273
mp.register_script_message("mpv_thumbnail_script-worker", function(worker_name)

0 commit comments

Comments
 (0)