From 9c0e4ec782724aa4fe24dd4fa6aa11cfb1408db9 Mon Sep 17 00:00:00 2001 From: holi0317 Date: Mon, 12 Feb 2018 23:29:24 +0800 Subject: [PATCH] Fix interop issue with mpv-gallery-view --- 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 509bda1..2cf580d 100644 --- a/src/thumbnailer_shared.lua +++ b/src/thumbnailer_shared.lua @@ -282,7 +282,7 @@ function Thumbnailer:register_client() if 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 ~= nil and duration < max_duration or max_duration == 0 then self:start_worker_jobs() end end