From f268e03e183724e40203138306101eaf67bbbd8c Mon Sep 17 00:00:00 2001 From: Bhoomit Ganatra <63059063+bhumit070@users.noreply.github.com> Date: Fri, 11 Nov 2022 07:31:59 +0530 Subject: [PATCH] FIx on quit mpv it shows error in console trying to compare number with nil --- src/thumbnailer_shared.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thumbnailer_shared.lua b/src/thumbnailer_shared.lua index b0e5dfd..624680c 100644 --- a/src/thumbnailer_shared.lua +++ b/src/thumbnailer_shared.lua @@ -282,7 +282,7 @@ function Thumbnailer:register_client() if duration ~= nil and self.state.available and thumbnailer_options.autogenerate then -- Notify if autogenerate is on and video is not too long - if duration < max_duration or max_duration == 0 then + if duration and duration < max_duration or max_duration and max_duration == 0 then self:start_worker_jobs() end end