Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2dc546d0 authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab
Browse files

[media] coda: fix coda_s_fmt_vid_out



Set the context color space when s_fmt succeeded, not when it failed.

Signed-off-by: default avatarPhilipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 18fd0cce
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -504,6 +504,8 @@ static int coda_s_fmt_vid_out(struct file *file, void *priv,


	ret = coda_s_fmt(ctx, f);
	ret = coda_s_fmt(ctx, f);
	if (ret)
	if (ret)
		return ret;

	ctx->colorspace = f->fmt.pix.colorspace;
	ctx->colorspace = f->fmt.pix.colorspace;


	return ret;
	return ret;