diff options
author | Pavan Chikkala <pavanc@codeaurora.org> | 2013-07-19 18:51:30 +0530 |
---|---|---|
committer | Pavan Chikkala <pavanc@codeaurora.org> | 2013-07-19 18:54:12 +0530 |
commit | 0ee5390aa38ba93d3ec91e9a8874fcb2da8a447f (patch) | |
tree | d8351b9ebb02c7dd6187fe727577977cefaa7931 /mm-video | |
parent | b13dc605f5e164e8e652e9df8d4423085b6fe620 (diff) | |
download | android_hardware_qcom_media-0ee5390aa38ba93d3ec91e9a8874fcb2da8a447f.tar.gz android_hardware_qcom_media-0ee5390aa38ba93d3ec91e9a8874fcb2da8a447f.tar.bz2 android_hardware_qcom_media-0ee5390aa38ba93d3ec91e9a8874fcb2da8a447f.zip |
mm-video: vdec: Update output buffer count in thumbnail mode
This change updates the output buffer requirements when thumbnail mode
is enabled. In thumbnail mode the required output buffers equal to 1.
Output Buffer required for thumbnail mode were not updated earlier from
the driver as a result of which allocating memory for default buffer
count failed and thumbnail were not shown for some file formats.
Change-Id: I607a5b0e3bfcad8056ff71557db50d0e268cf348
CRs-Fixed: 513180
Diffstat (limited to 'mm-video')
-rw-r--r-- | mm-video/vidc/vdec/src/omx_vdec.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm-video/vidc/vdec/src/omx_vdec.cpp b/mm-video/vidc/vdec/src/omx_vdec.cpp index 85ec9db5..fd75e2e7 100644 --- a/mm-video/vidc/vdec/src/omx_vdec.cpp +++ b/mm-video/vidc/vdec/src/omx_vdec.cpp @@ -3765,6 +3765,10 @@ OMX_ERRORTYPE omx_vdec::set_parameter(OMX_IN OMX_HANDLETYPE hComp, } } #endif + eRet = get_buffer_req(&drv_ctx.op_buf); + if (eRet != OMX_ErrorNone) { + DEBUG_PRINT_ERROR("get_buffer_req(op_buf) failed!!"); + } } break; #ifdef MAX_RES_1080P |