We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 682becf commit b82d752Copy full SHA for b82d752
src/thumbnailer_shared.lua
@@ -68,8 +68,10 @@ function Thumbnailer:on_start_file()
68
end
69
70
function Thumbnailer:on_video_change(params)
71
- -- Gather a new state when we get proper video-dec-params and our state is empty
72
- if params ~= nil then
+ local duration = mp.get_property_native("duration")
+ -- Gather a new state when we have proper video-dec-params, duration
73
+ -- and our state is empty
74
+ if params ~= nil and duration ~= nil then
75
if not self.state.ready then
76
self:update_state()
77
0 commit comments