From 05b2f42664512b98a19dc25928250d436257188a Mon Sep 17 00:00:00 2001 From: "jinhyung.jo" Date: Mon, 23 Jun 2014 16:34:18 +0900 Subject: [PATCH] v4l2-core: Modified error code The gst-plugins-good0.10 does not handle this error code(ENODATA). Thus, using the error code(ENOTTY), it can handle. Temporary patch, until gst-plugins-good is updated. Change-Id: I95d6f01c1051e0f98f7ae1bbc1d386a04817bf65 Signed-off-by: Jinhyung Jo --- drivers/media/v4l2-core/v4l2-ioctl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 68e6b5e912ff..88352bafd953 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1319,7 +1319,11 @@ static int v4l_enumstd(const struct v4l2_ioctl_ops *ops, /* Return -ENODATA if the tvnorms for the current input or output is 0, meaning that it doesn't support this API. */ if (id == 0) - return -ENODATA; + /* return -ENODATA; + FIXME: hot fix for gst-plugins-good0.10. + It does not handle this error code(ENODATA). + Thus, using the error code(ENOTTY), it can handle */ + return -ENOTTY; /* Return norm array in a canonical way */ for (i = 0; i <= index && id; i++) { -- 2.34.1