Fixed the issue that the fd of native_handle_t wasn't closed.
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)
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 @@
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;
}