Fixed the issue that the fd of native_handle_t wasn't closed.
am: ece7d9646d

Change-Id: I0ba0fc65b8e35e1a4baacf1e470e6627d0a7e39b
diff --git a/videocodec/Android.mk b/videocodec/Android.mk
index 4917dd8..da659a9 100755
--- a/videocodec/Android.mk
+++ b/videocodec/Android.mk
@@ -20,6 +20,9 @@
     libva \
     libva-android
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
@@ -94,6 +97,9 @@
     libva \
     libva-android
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
@@ -156,6 +162,9 @@
     libva_videodecoder \
     libdl \
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
@@ -214,6 +223,9 @@
     libva \
     libva-android
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
@@ -275,6 +287,9 @@
     libva \
     libva-android
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
@@ -336,6 +351,9 @@
     libva \
     libva-android
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
@@ -405,6 +423,9 @@
     libva-android \
     libcutils
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
@@ -460,6 +481,9 @@
     libva \
     libva-android
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
@@ -624,6 +648,9 @@
     libva \
     libva-android
 
+LOCAL_HEADER_LIBRARIES := \
+    libnativebase_headers
+
 LOCAL_C_INCLUDES := \
     $(TARGET_OUT_HEADERS)/wrs_omxil_core \
     $(TARGET_OUT_HEADERS)/khronos/openmax \
diff --git a/videocodec/OMXVideoDecoderBase.cpp b/videocodec/OMXVideoDecoderBase.cpp
index 54fcfdc..9ea1955 100755
--- a/videocodec/OMXVideoDecoderBase.cpp
+++ b/videocodec/OMXVideoDecoderBase.cpp
@@ -18,6 +18,7 @@
 #define LOG_TAG "OMXVideoDecoder"
 #include <wrs_omxil_core/log.h>
 
+#include <nativebase/nativebase.h>
 #include <hardware/gralloc.h>
 #include <va/va_android.h>
 
diff --git a/videocodec/OMXVideoDecoderVP9Hybrid.cpp b/videocodec/OMXVideoDecoderVP9Hybrid.cpp
index d6030e4..61d7ba2 100644
--- a/videocodec/OMXVideoDecoderVP9Hybrid.cpp
+++ b/videocodec/OMXVideoDecoderVP9Hybrid.cpp
@@ -20,7 +20,6 @@
 #include <wrs_omxil_core/log.h>
 #include "OMXVideoDecoderVP9Hybrid.h"
 
-#include <system/window.h>
 #include <hardware/hardware.h>
 #include <hardware/gralloc.h>
 #include <system/graphics.h>