mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-22 08:28:27 +07: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