Fix crash when using --image-display-duration (#30)

This commit is contained in:
Eva
2020-06-16 18:01:37 +02:00
committed by GitHub
parent f3a703ad9b
commit 6648c59088

View File

@@ -1365,7 +1365,7 @@ end
-- ELEMENT RENDERERS
function render_timeline(this)
if this.size_max == 0 or state.duration == nil or state.position == nil then return end
if this.size_max == 0 or state.duration == nil or state.duration == 0 or state.position == nil then return end
local size_min = this:get_effective_size_min()
local size = this:get_effective_size()