Skip to content

Commit

Permalink
Fix pre-rotated videos
Browse files Browse the repository at this point in the history
  • Loading branch information
po5 committed Sep 18, 2022
1 parent c94d215 commit 4cbf4ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thumbfast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ end

local function info()
local display_w, display_h = effective_w, effective_h
if last_rotate % 180 == 90 then
if mp.get_property_number("video-params/rotate", 0) % 180 == 90 then
display_w, display_h = effective_h, effective_w
end

Expand Down Expand Up @@ -318,7 +318,7 @@ local function display_img(w, h, thumbtime, display_time, script, redraw)
if x ~= nil then
local display_w, display_h = w, h

if last_rotate % 180 == 90 then
if mp.get_property_number("video-params/rotate", 0) % 180 == 90 then
display_w, display_h = h, w
end

Expand All @@ -327,7 +327,7 @@ local function display_img(w, h, thumbtime, display_time, script, redraw)
)
elseif script then
local display_w, display_h = w, h
if last_rotate % 180 == 90 then
if mp.get_property_number("video-params/rotate", 0) % 180 == 90 then
display_w, display_h = h, w
end

Expand Down

0 comments on commit 4cbf4ba

Please sign in to comment.