From 0beaee04746d286e3bdc6a1846e8fd70653a3ce9 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 10 Dec 2008 15:15:55 +0000 Subject: change timeout svn path=/trunk/externals/pidip/; revision=10435 --- modules/pdp_v4l2.c | 10 +++++----- 1 file 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); } } -- cgit v1.2.1