From: Christopher N. Hesse Date: Sat, 26 Nov 2016 18:24:39 +0000 (+0100) Subject: libhwc: Ensure buffer type is a v4l2_buf_type X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc7037b6bdf3ed7ebcc948a401a1ef02a64129d2;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos5.git libhwc: Ensure buffer type is a v4l2_buf_type Change-Id: I31065ec7bff46af1ce080d5d386616f5cc3964f8 --- 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;