summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2015-02-04 08:19:25 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-02-04 08:19:27 +0000
commit46a9721aebb3be64ec6f6941414b3f54131d2954 (patch)
tree54f02c02df4235b445889a27c626ae66d5b1b8f8 /media/java
parent948c9a6393e0995a4d988d5d164998aa0e12b25d (diff)
parent6c9833b9674197eb3ef3d1617584787600f5e7df (diff)
downloadframeworks_base-46a9721aebb3be64ec6f6941414b3f54131d2954.zip
frameworks_base-46a9721aebb3be64ec6f6941414b3f54131d2954.tar.gz
frameworks_base-46a9721aebb3be64ec6f6941414b3f54131d2954.tar.bz2
Merge "MediaCodecInfo: remove stack trace logspam when querying invalid sizes"
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/MediaCodecInfo.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/media/java/android/media/MediaCodecInfo.java b/media/java/android/media/MediaCodecInfo.java
index e74399c..6ac854f 100644
--- a/media/java/android/media/MediaCodecInfo.java
+++ b/media/java/android/media/MediaCodecInfo.java
@@ -881,8 +881,8 @@ public final class MediaCodecInfo {
(int)(mAspectRatioRange.getUpper().doubleValue() * height));
return range;
} catch (IllegalArgumentException e) {
- // should not be here
- Log.w(TAG, "could not get supported widths for " + height , e);
+ // height is not supported because there are no suitable widths
+ Log.v(TAG, "could not get supported widths for " + height);
throw new IllegalArgumentException("unsupported height");
}
}
@@ -925,8 +925,8 @@ public final class MediaCodecInfo {
(int)(width / mAspectRatioRange.getLower().doubleValue()));
return range;
} catch (IllegalArgumentException e) {
- // should not be here
- Log.w(TAG, "could not get supported heights for " + width , e);
+ // width is not supported because there are no suitable heights
+ Log.v(TAG, "could not get supported heights for " + width);
throw new IllegalArgumentException("unsupported width");
}
}