We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2549fb6 commit b8138dbCopy full SHA for b8138db
src/thumbnailer_shared.lua
@@ -205,10 +205,10 @@ end
205
206
207
function Thumbnailer:get_thumbnail_count(delta)
208
- if delta == nil then
+ local file_duration = mp.get_property_native("duration")
209
+ if delta == nil or file_duration == nil then
210
return 0
211
end
- local file_duration = mp.get_property_native("duration")
212
213
return math.ceil(file_duration / delta)
214
0 commit comments