42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
From d984a50f4f4883ca8bd35066aecd2cbd99256af2 Mon Sep 17 00:00:00 2001
|
|
From: MastaG <mastag@gmail.com>
|
|
Date: Mon, 4 Jan 2021 14:05:08 +0100
|
|
Subject: [PATCH 36/75] ODROID-XU4: s5p-mfc: Try again after error.
|
|
|
|
This is a fix by AreaScout which makes sure that we can try to play new videos in Kodi.
|
|
|
|
Change-Id: I50181bebeb16aec6148468315ed67a7ce1bc7adb
|
|
---
|
|
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
|
|
index c1d3bda8385b..16614e26c52c 100644
|
|
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
|
|
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
|
|
@@ -615,8 +615,8 @@ static int vidioc_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
|
|
struct s5p_mfc_ctx *ctx = fh_to_ctx(priv);
|
|
|
|
if (ctx->state == MFCINST_ERROR) {
|
|
- mfc_err("Call on QBUF after unrecoverable error\n");
|
|
- return -EIO;
|
|
+ //mfc_err("Call on QBUF after unrecoverable error\n");
|
|
+ return -EAGAIN;
|
|
}
|
|
if (buf->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
|
|
return vb2_qbuf(&ctx->vq_src, NULL, buf);
|
|
@@ -635,8 +635,8 @@ static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
|
|
int ret;
|
|
|
|
if (ctx->state == MFCINST_ERROR) {
|
|
- mfc_err_limited("Call on DQBUF after unrecoverable error\n");
|
|
- return -EIO;
|
|
+ //mfc_err_limited("Call on DQBUF after unrecoverable error\n");
|
|
+ return -EAGAIN;
|
|
}
|
|
|
|
switch (buf->type) {
|
|
--
|
|
2.25.1
|
|
|