From: Dima Zavin <dima@android.com>
Date: Sat, 4 Aug 2012 08:15:15 +0000 (-0700)
Subject: HACK: exynos5: gscaler: do not skip s_fmt/reqbufs on gsc_convert path
X-Git-Tag: cm-10.1-M1~257^2
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7bc63d1fa0e161081a7647b3b27ecf5a8aafc104;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos5.git

HACK: exynos5: gscaler: do not skip s_fmt/reqbufs on gsc_convert path

This fixes the bug where still capture always captures the same
image and video recording only taking first image.

The issue is that reqbufs is reset to 0 and fmt is not set
when the buffers try to be enqueued and stremaing turned on in the path
from csc_convert().

This is temporary as the gscaler code really needs a huge cleanup.

Bug: 6925368
Change-Id: Ia8e3aee0e0b50c6a69e1eda219e484713088c042
Signed-off-by: Dima Zavin <dima@android.com>
---

diff --git a/libgscaler/exynos_gscaler.c b/libgscaler/exynos_gscaler.c
index 821d258..924d01e 100755
--- a/libgscaler/exynos_gscaler.c
+++ b/libgscaler/exynos_gscaler.c
@@ -675,7 +675,6 @@ static bool m_exynos_gsc_set_format(
 
         // skip s_fmt
         ALOGV("%s::fmt, crop is same with old-one, so skip s_fmt crop..", __func__);
-        return true;
     }
 
 set_hw: