aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmodules/pdp_v4l2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/pdp_v4l2.c b/modules/pdp_v4l2.c
index 0b5f655..b970c4f 100755
--- a/modules/pdp_v4l2.c
+++ b/modules/pdp_v4l2.c
@@ -205,20 +205,20 @@ static void pdp_v4l2_wait_frame(t_pdp_v4l2* x)
FD_SET (x->x_tvfd, &fds);
// Timeout.
- tv.tv_sec = 2;
+ tv.tv_sec = 5;
tv.tv_usec = 0;
ret = select (x->x_tvfd + 1, &fds, NULL, NULL, &tv);
if (-1 == ret) {
if (EINTR == errno) return;
- post ( "pdp_v4l2 : select timeout : thread exiting");
- exit (-1);
+ post ( "pdp_v4l2 : select timeout : closing device");
+ pdp_v4l2_close(x);
}
if (0 == ret)
{
- post ( "pdp_v4l2 : select timeout : thread exiting");
- exit (-1);
+ post ( "pdp_v4l2 : select timeout : closing device");
+ pdp_v4l2_close(x);
}
}