[Title] Increase the timeout value
authorjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 7 Nov 2011 05:47:42 +0000 (14:47 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 7 Nov 2011 05:47:42 +0000 (14:47 +0900)
[Type] Bugfix
[Module] Emulator/Camera
[Priority]
[CQ#]
[Redmine#]
[Problem] camera start failure
[Cause] timed out waiting for get a starting frame
[Solution] increase the timeout value for select()
[TestCase]

hw/svcamera_linux.c

index 0adabc4..9d925c7 100644 (file)
@@ -97,7 +97,7 @@ static int __v4l2_grab(SVCamState *state)
        FD_ZERO(&fds);
        FD_SET(v4l2_fd, &fds);
 
-       tv.tv_sec = 1;
+       tv.tv_sec = 2;
        tv.tv_usec = 0;
 
        r = select(v4l2_fd + 1, &fds, NULL, NULL, &tv);