Commit 68e77d2e authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by Mauro Carvalho Chehab

[media] s5p-mfc-dec: Don't use encoder stop command

The decoder should handle V4L2_DEC_CMD_STOP to trigger drain,
but it currently expecting V4L2_ENC_CMD_STOP.
Signed-off-by: default avatarNicolas Dufresne <nicolas.dufresne@collabora.com>
Acked-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 1b880ef6
...@@ -813,7 +813,7 @@ static int vidioc_decoder_cmd(struct file *file, void *priv, ...@@ -813,7 +813,7 @@ static int vidioc_decoder_cmd(struct file *file, void *priv,
unsigned long flags; unsigned long flags;
switch (cmd->cmd) { switch (cmd->cmd) {
case V4L2_ENC_CMD_STOP: case V4L2_DEC_CMD_STOP:
if (cmd->flags != 0) if (cmd->flags != 0)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment