mirror of
https://github.com/yattee/yattee.git
synced 2025-07-01 09:09:49 +00:00
Fix applying aspect ratio
This commit is contained in:
parent
c23b42f76c
commit
285479c6cf
@ -33,7 +33,7 @@ struct VideoPlayerSizeModifier: ViewModifier {
|
||||
}
|
||||
|
||||
var usedAspectRatio: Double {
|
||||
guard let aspectRatio = aspectRatio, aspectRatio != 0 else {
|
||||
guard let aspectRatio = aspectRatio, aspectRatio > 0, aspectRatio < VideoPlayerView.defaultAspectRatio else {
|
||||
return VideoPlayerView.defaultAspectRatio
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user