summaryrefslogtreecommitdiffstats
path: root/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp')
-rw-r--r--mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
index 125a7db7..2989ebb6 100644
--- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
+++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
@@ -1737,7 +1737,9 @@ OMX_ERRORTYPE omx_vdec::component_init(OMX_STRING role)
maxSmoothStreamingWidth = 1280;
maxSmoothStreamingHeight = 720;
}
- if (!strncmp(platform_name, "msm8956", 7) || !strncmp(platform_name, "msm8976", 7)) {
+ if (property_get("media.msm8956hw", property_value, "0") &&
+ atoi(property_value)) {
+ DEBUG_PRINT_HIGH("Downscalar enabled");
is_downscalar_supported = true;
} else {
is_downscalar_supported = false;