Skip to content

Commit

Permalink
Merge pull request #821 from moffatman/one_videoparams_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moffatman committed May 13, 2024
2 parents 58a473f + 79856a5 commit 13f6b3f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ public class VideoOutput: NSObject {
let params = MPVHelpers.getVideoOutParams(handle)
return CGSize(
width: Double(width ?? (params.rotate == 0 || params.rotate == 180
? params.dh
: params.dw)),
? params.dw
: params.dh)),
height: Double(height ?? (params.rotate == 0 || params.rotate == 180
? params.dw
: params.dh))
? params.dh
: params.dw))
)
}
}

0 comments on commit 13f6b3f

Please sign in to comment.