diff options
author | Lajos Molnar <lajos@google.com> | 2015-01-29 10:18:35 -0800 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2015-01-29 10:24:37 -0800 |
commit | 6c9833b9674197eb3ef3d1617584787600f5e7df (patch) | |
tree | da3e45fbd073832b165e70c7bdcfc6f649a604ea | |
parent | c5ea9faef0d654148556c1dcc7f6c85b2866ea8a (diff) | |
download | frameworks_base-6c9833b9674197eb3ef3d1617584787600f5e7df.zip frameworks_base-6c9833b9674197eb3ef3d1617584787600f5e7df.tar.gz frameworks_base-6c9833b9674197eb3ef3d1617584787600f5e7df.tar.bz2 |
MediaCodecInfo: remove stack trace logspam when querying invalid sizes
Change-Id: I0ed3825f17cacb0502c40483462f1d76f92e5efa
-rw-r--r-- | media/java/android/media/MediaCodecInfo.java | 8 |
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"); } } |