v4l2-core: Modified error code 77/30077/1
authorjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 23 Jun 2014 07:34:18 +0000 (16:34 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 10 Nov 2014 03:53:29 +0000 (12:53 +0900)
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 <jinhyung.jo@samsung.com>
drivers/media/v4l2-core/v4l2-ioctl.c

index 68e6b5e..88352ba 100644 (file)
@@ -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++) {