Skip to content

Commit 79a9cd4

Browse files
author
Bryan Mawhinney
committed
Fix video scaling mode validity check.
Change-Id: Ib7adead2758d50cae67741364801e966a82ad5ba
1 parent 6a16098 commit 79a9cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media/java/android/media/MediaPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ public void setSurface(Surface surface) {
737737
* @see MediaPlayer#VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
738738
*/
739739
public void setVideoScalingMode(int mode) {
740-
if (isVideoScalingModeSupported(mode)) {
740+
if (!isVideoScalingModeSupported(mode)) {
741741
final String msg = "Scaling mode " + mode + " is not supported";
742742
throw new IllegalArgumentException(msg);
743743
}

0 commit comments

Comments
 (0)