summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorBryan Mawhinney <bryanmawhinney@google.com>2012-05-18 00:15:56 +0100
committerBryan Mawhinney <bryanmawhinney@google.com>2012-05-18 00:15:56 +0100
commit79a9cd40f5ebb2453cb982bc17d9797a1cbdf8d8 (patch)
treec91826b96403823a1cb71453695e89fea6bd4441 /media/java
parent6a16098437665c3aab3e9980359e140b8a47858b (diff)
downloadframeworks_base-79a9cd40f5ebb2453cb982bc17d9797a1cbdf8d8.zip
frameworks_base-79a9cd40f5ebb2453cb982bc17d9797a1cbdf8d8.tar.gz
frameworks_base-79a9cd40f5ebb2453cb982bc17d9797a1cbdf8d8.tar.bz2
Fix video scaling mode validity check.
Change-Id: Ib7adead2758d50cae67741364801e966a82ad5ba
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/MediaPlayer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java
index aa4cdbe..9ed9de0 100644
--- a/media/java/android/media/MediaPlayer.java
+++ b/media/java/android/media/MediaPlayer.java
@@ -737,7 +737,7 @@ public class MediaPlayer
* @see MediaPlayer#VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
*/
public void setVideoScalingMode(int mode) {
- if (isVideoScalingModeSupported(mode)) {
+ if (!isVideoScalingModeSupported(mode)) {
final String msg = "Scaling mode " + mode + " is not supported";
throw new IllegalArgumentException(msg);
}