summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/wifi-display
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-05-02 21:16:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-02 21:16:23 +0000
commit25b089697febaac4f699bb7ae68ad3839c4df5ab (patch)
tree47913338204aa981efe479463c91ba4a9e03e0ce /media/libstagefright/wifi-display
parent093a1f3a001a5fb3bac011abc2aa376f621c1bfe (diff)
parent9f447e90991315c5a09ba6dfa2ef249922dbf781 (diff)
downloadframeworks_av-25b089697febaac4f699bb7ae68ad3839c4df5ab.zip
frameworks_av-25b089697febaac4f699bb7ae68ad3839c4df5ab.tar.gz
frameworks_av-25b089697febaac4f699bb7ae68ad3839c4df5ab.tar.bz2
Merge "Don't even try to verify the native resolution validity a" into jb-mr2-dev
Diffstat (limited to 'media/libstagefright/wifi-display')
-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 {