From fc7037b6bdf3ed7ebcc948a401a1ef02a64129d2 Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Sat, 26 Nov 2016 19:24:39 +0100 Subject: [PATCH] libhwc: Ensure buffer type is a v4l2_buf_type Change-Id: I31065ec7bff46af1ce080d5d386616f5cc3964f8 --- libhwc/hwc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libhwc/hwc.cpp b/libhwc/hwc.cpp index b4e4a8e..ccd6cf8 100644 --- a/libhwc/hwc.cpp +++ b/libhwc/hwc.cpp @@ -731,7 +731,8 @@ static int hdmi_output(struct exynos5_hwc_composer_device_1_t *dev, hl.current_buf = (hl.current_buf + 1) % NUM_HDMI_BUFFERS; if (!hl.streaming) { - if (exynos_v4l2_streamon(hl.fd, buffer.type) < 0) { + enum v4l2_buf_type buffer_type = static_cast(buffer.type); + if (exynos_v4l2_streamon(hl.fd, buffer_type) < 0) { ALOGE("%s: layer%d: streamon failed %d", __func__, hl.id, errno); ret = -1; goto err; -- 2.20.1