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 1b67e22 commit ccdddb7Copy full SHA for ccdddb7
src/thumbnailer_shared.lua
@@ -146,6 +146,11 @@ end
146
147
function Thumbnailer:get_thumbnail_size()
148
local video_dec_params = mp.get_property_native("video-dec-params")
149
+ -- Guard against nil video_dec_params before trying to access dimensions
150
+ if video_dec_params == nil then
151
+ return nil
152
+ end
153
+
154
local video_width = video_dec_params.dw
155
local video_height = video_dec_params.dh
156
if not (video_width and video_height) then
0 commit comments