diff options
author | Steve Kondik <steve@cyngn.com> | 2016-08-19 17:41:21 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-19 17:43:06 -0700 |
commit | 16d14e178003b193db1422c11c95bc0b1d44b690 (patch) | |
tree | 3f473fdf16eb3831ffdb4f7b6726d60a9b400559 /media | |
parent | e4575aeb5d66f71b6ef6c611570ea96df81c1246 (diff) | |
download | frameworks_av-16d14e178003b193db1422c11c95bc0b1d44b690.zip frameworks_av-16d14e178003b193db1422c11c95bc0b1d44b690.tar.gz frameworks_av-16d14e178003b193db1422c11c95bc0b1d44b690.tar.bz2 |
stagefright: Disable thumbnail mode for 8996-class devices
* The hardware is freezing when used for certain media types. Disable
it until the issue is understood.
Change-Id: Iaec2420b4f8d3ceacf2c6f72ab14db424092c96b
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/FFMPEGSoftCodec.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/media/libstagefright/FFMPEGSoftCodec.cpp b/media/libstagefright/FFMPEGSoftCodec.cpp index 7233162..0d5802b 100644 --- a/media/libstagefright/FFMPEGSoftCodec.cpp +++ b/media/libstagefright/FFMPEGSoftCodec.cpp @@ -35,6 +35,8 @@ #include <media/stagefright/OMXCodec.h> #include <media/stagefright/Utils.h> +#include <cutils/properties.h> + #include <OMX_Component.h> #include <OMX_AudioExt.h> #include <OMX_IndexExt.h> @@ -394,9 +396,13 @@ status_t FFMPEGSoftCodec::setVideoFormat( } // Enable Sync-frame decode mode for thumbnails + char board[PROPERTY_VALUE_MAX]; + property_get("ro.board.platform", board, NULL); int32_t thumbnailMode = 0; if (msg->findInt32("thumbnail-mode", &thumbnailMode) && - thumbnailMode > 0) { + thumbnailMode > 0 && + !(!strcmp(board, "msm8996") || !strcmp(board, "msm8937") || + !strcmp(board, "msm8953") || !strcmp(board, "msm8976"))) { ALOGV("Enabling thumbnail mode."); QOMX_ENABLETYPE enableType; OMX_INDEXTYPE indexType; |