From: jinhyung.jo Date: Mon, 23 Jun 2014 07:34:18 +0000 (+0900) Subject: v4l2-core: Modified error code X-Git-Tag: submit/tizen/20160422.055611~1^2~110^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42f6cf2342819da8d3fea637a2ff39b469f33428;p=sdk%2Femulator%2Femulator-kernel.git 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 --- 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++) {