diff options
author | N.N. <sevyves@users.sourceforge.net> | 2008-12-10 15:15:55 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2008-12-10 15:15:55 +0000 |
commit | 0beaee04746d286e3bdc6a1846e8fd70653a3ce9 (patch) | |
tree | 83d7aa790c5a5d72ed87d6a571a3e819548e5513 /modules | |
parent | 119243777a963c973cfe5679dbbe29d272582830 (diff) |
change timeout
svn path=/trunk/externals/pidip/; revision=10435
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/pdp_v4l2.c | 10 |
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); } } |