We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a16098 commit 79a9cd4Copy full SHA for 79a9cd4
media/java/android/media/MediaPlayer.java
@@ -737,7 +737,7 @@ public void setSurface(Surface surface) {
737
* @see MediaPlayer#VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
738
*/
739
public void setVideoScalingMode(int mode) {
740
- if (isVideoScalingModeSupported(mode)) {
+ if (!isVideoScalingModeSupported(mode)) {
741
final String msg = "Scaling mode " + mode + " is not supported";
742
throw new IllegalArgumentException(msg);
743
}
0 commit comments