Skip to content

Commit

Permalink
media: exynos-gsc: fix v4l2 SELECTION api
Browse files Browse the repository at this point in the history
Signed-off-by: memeka <mihailescu2m@gmail.com>
  • Loading branch information
mihailescu2m committed Oct 23, 2019
1 parent 1f7ada1 commit bed793e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/exynos-gsc/gsc-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,9 @@ static inline struct gsc_frame *ctx_get_frame(struct gsc_ctx *ctx,
{
struct gsc_frame *frame;

if (V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE == type) {
if (V4L2_BUF_TYPE_VIDEO_OUTPUT == type || V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE == type) {
frame = &ctx->s_frame;
} else if (V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE == type) {
} else if (V4L2_BUF_TYPE_VIDEO_CAPTURE == type || V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE == type) {
frame = &ctx->d_frame;
} else {
pr_err("Wrong buffer/video queue type (%d)", type);
Expand Down

0 comments on commit bed793e

Please sign in to comment.