mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
[media] 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> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
18fd0cceb9
commit
2dc546d00c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user