summaryrefslogtreecommitdiff
authorXu Jintao <jintao.xu@amlogic.com>2016-03-21 07:06:19 (GMT)
committer Xu Jintao <jintao.xu@amlogic.com>2016-03-21 07:17:02 (GMT)
commitbe8b6b3898225ab571e2307c7fc43aad3085029d (patch)
tree6a8eb93acaf03c661cfc0e20fc2b7638882164e5
parentdcd57185b6117b958dbab83c13303b03ba074da0 (diff)
downloadhwcomposer-be8b6b3898225ab571e2307c7fc43aad3085029d.zip
hwcomposer-be8b6b3898225ab571e2307c7fc43aad3085029d.tar.gz
hwcomposer-be8b6b3898225ab571e2307c7fc43aad3085029d.tar.bz2
PD#121605: close amvideo when ~Layer
Change-Id: I1d812622ff2195ee72c982cdfbb8e2ee36b15acb
Diffstat
-rw-r--r--[-rwxr-xr-x]tvp/OmxUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvp/OmxUtil.cpp b/tvp/OmxUtil.cpp
index 01c7949..2bd0901 100755..100644
--- a/tvp/OmxUtil.cpp
+++ b/tvp/OmxUtil.cpp
@@ -48,7 +48,7 @@ int setomxpts(int time_video) {
void set_omx_pts(char* data, int* handle) {
if (strncmp(data, TVP_SECRET, strlen(TVP_SECRET))==0) {
- if (*handle==0) {
+ if (*handle == 0 || amvideo_handle == 0) {
*handle = openamvideo();
if (*handle == 0)
ALOGW("can not open amvideo");