Fix a build break due to a change in libui
authorDan Stoza <stoza@google.com>
Mon, 8 Dec 2014 19:54:16 +0000 (11:54 -0800)
committerDan Stoza <stoza@google.com>
Mon, 8 Dec 2014 19:54:16 +0000 (11:54 -0800)
The Rect constructor became ambiguous because of the addition of a
new overload. This resolves the ambiguity to fix the build, but the
dependency on libui should be removed altogether.

Bug: 18668702
Change-Id: I923fcf793790776cd067933292ec8c8050f27d1c

exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp

index 997b92601fa3662c11734d097d96b3bb9cd3e6a2..d4e24d3b9a22ca5a94c0a4c4beb48be78c305bb1 100644 (file)
@@ -81,7 +81,7 @@ OMX_ERRORTYPE Exynos_OSAL_LockANBHandle(
     GraphicBufferMapper &mapper = GraphicBufferMapper::get();
     buffer_handle_t bufferHandle = (buffer_handle_t) handle;
     private_handle_t *priv_hnd = (private_handle_t *) bufferHandle;
-    Rect bounds(width, height);
+    Rect bounds((uint32_t)width, (uint32_t)height);
     ExynosVideoPlane *vplanes = (ExynosVideoPlane *) planes;
     void *vaddr[MAX_BUFFER_PLANE];