diff options
author | Austin Hu <austin.hu@intel.com> | 2017-06-30 10:27:29 +0800 |
---|---|---|
committer | Daniel Cardenas <danielcar@google.com> | 2017-06-30 08:05:38 -0700 |
commit | ece7d9646dae34594f912fce2e0f1b274bf4daf3 (patch) | |
tree | aecac7daf1c8b01c87b074cf46efd640c166c74c | |
parent | c3a5de3fe0496a30c13fea3636f17585fed89b91 (diff) | |
download | omx-components-ece7d9646dae34594f912fce2e0f1b274bf4daf3.tar.gz |
Fixed the issue that the fd of native_handle_t wasn't closed.android-vts-8.0_r2android-vts-8.0_r1
Fixes: 62842560
Test: Netflix, play movies, youtube
Test: gts-tradefed run gts -m GtsMediaTestCases
Invocation finished in 3h 50m 45s. PASSED: 478, FAILED: 0, MODULES: 2 of 2
Change-Id: Ic775f3c6fee7865e545d9473cc61ccfe5d249458
Signed-off-by: Austin Hu <austin.hu@intel.com>
(cherry picked from commit 93fb13788ffb52d58defb1f6fb79a697df2135a9)
-rwxr-xr-x | videocodec/securevideo/moorefield/OMXVideoDecoderAVCSecure.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/videocodec/securevideo/moorefield/OMXVideoDecoderAVCSecure.cpp b/videocodec/securevideo/moorefield/OMXVideoDecoderAVCSecure.cpp index 7ec2d48..1518578 100755 --- a/videocodec/securevideo/moorefield/OMXVideoDecoderAVCSecure.cpp +++ b/videocodec/securevideo/moorefield/OMXVideoDecoderAVCSecure.cpp @@ -659,6 +659,9 @@ void OMXVideoDecoderAVCSecure::MemFreeDataBuffer(OMX_U8 *pBuffer) { ALOGE("%s: Faild to munmap %p",__FUNCTION__, dataBuffer); return; } + + native_handle_close(native_handle); + native_handle_delete(native_handle); ALOGV("Free databuffer %p with data = %p", dataBuffer, dataBuffer->data); --mNumInportBuffers; } |