Commit bf7bb7e9 authored by Carola Nitz's avatar Carola Nitz

VLCPlaybackController: fix rounding error which prevented crop to fill to be applied on iPad

(cherry picked from commit f0fa630b)
parent 95d6e078
Pipeline #181 failed with stage
in 0 seconds
......@@ -755,7 +755,7 @@ VLCMediaDelegate>
_mediaPlayer.videoAspectRatio = "16:9";
} else if (f_ar == (float)(2./3.)) {// all other iPhones
_mediaPlayer.videoAspectRatio = "16:10"; // libvlc doesn't support 2:3 crop
} else if (f_ar == (float)(1. + (1./3.))) {// all iPads
} else if (f_ar == (float)(4.0/3.0)) {// all iPads
_mediaPlayer.videoAspectRatio = "4:3";
} else if (f_ar == .5625) {// AirPlay
_mediaPlayer.videoAspectRatio = "16:9";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment