aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2014-08-05 19:00:18 +0200
committerKamil Debski <k.debski@samsung.com>2014-08-06 14:29:22 +0200
commite9977dbaad82673e94a9aa2502c8d2d8ecd9b5e0 (patch)
tree597d8ef8711cbd865d8807687b25d6a6ba32493e
parent01e359213777b60a062fb833802f097f5567ac29 (diff)
coda: fix coda_s_fmt_vid_out
Set the context color space when s_fmt succeeded, not when it failed. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Kamil Debski <k.debski@samsung.com>
-rw-r--r--drivers/media/platform/coda/coda-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index e84b32088fc0..dfecb8602f07 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -504,7 +504,9 @@ static int coda_s_fmt_vid_out(struct file *file, void *priv,
ret = coda_s_fmt(ctx, f);
if (ret)
- ctx->colorspace = f->fmt.pix.colorspace;
+ return ret;
+
+ ctx->colorspace = f->fmt.pix.colorspace;
return ret;
}

Privacy Policy