summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-05-02 14:21:40 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-02 14:21:40 -0700
commitd88c34b6765c843eb9d36dbc5659c89bf59e5931 (patch)
tree6351e99aafaf86c4be79a900d984dcc5659c93e1
parentdcd82dfaf7d4dc60e97f137355193dd816ddb006 (diff)
parent77cf463c09662a999d6d9a667a1d1313bd08b225 (diff)
downloadframeworks_av-d88c34b6765c843eb9d36dbc5659c89bf59e5931.zip
frameworks_av-d88c34b6765c843eb9d36dbc5659c89bf59e5931.tar.gz
frameworks_av-d88c34b6765c843eb9d36dbc5659c89bf59e5931.tar.bz2
am 77cf463c: am 00bbca96: Merge "Don\'t even try to verify the native resolution validity a" into jb-mr2-dev
* commit '77cf463c09662a999d6d9a667a1d1313bd08b225': Don't even try to verify the native resolution validity a
-rw-r--r--media/libstagefright/wifi-display/VideoFormats.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/media/libstagefright/wifi-display/VideoFormats.cpp b/media/libstagefright/wifi-display/VideoFormats.cpp
index d171c6f..da557f7 100644
--- a/media/libstagefright/wifi-display/VideoFormats.cpp
+++ b/media/libstagefright/wifi-display/VideoFormats.cpp
@@ -249,11 +249,20 @@ bool VideoFormats::parseFormatSpec(const char *spec) {
mNativeIndex = native >> 3;
mNativeType = (ResolutionType)(native & 7);
+ bool success;
if (mNativeType >= kNumResolutionTypes) {
- return false;
+ success = false;
+ } else {
+ success = GetConfiguration(
+ mNativeType, mNativeIndex, NULL, NULL, NULL, NULL);
}
- return GetConfiguration(mNativeType, mNativeIndex, NULL, NULL, NULL, NULL);
+ if (!success) {
+ ALOGW("sink advertised an illegal native resolution, fortunately "
+ "this value is ignored for the time being...");
+ }
+
+ return true;
}
AString VideoFormats::getFormatSpec(bool forM4Message) const {