Commit f0fa630b authored by Carola Nitz's avatar Carola Nitz

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

parent bacedd79
Pipeline #180 failed with stage
in 0 seconds
...@@ -755,7 +755,7 @@ VLCMediaDelegate> ...@@ -755,7 +755,7 @@ VLCMediaDelegate>
_mediaPlayer.videoAspectRatio = "16:9"; _mediaPlayer.videoAspectRatio = "16:9";
} else if (f_ar == (float)(2./3.)) {// all other iPhones } else if (f_ar == (float)(2./3.)) {// all other iPhones
_mediaPlayer.videoAspectRatio = "16:10"; // libvlc doesn't support 2:3 crop _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"; _mediaPlayer.videoAspectRatio = "4:3";
} else if (f_ar == .5625) {// AirPlay } else if (f_ar == .5625) {// AirPlay
_mediaPlayer.videoAspectRatio = "16:9"; _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