[PD-cvs] SF.net SVN: pure-data:[10435] trunk/externals/pidip/modules/pdp_v4l2.c

sevyves at users.sourceforge.net sevyves at users.sourceforge.net
Wed Dec 10 16:15:55 CET 2008


Revision: 10435
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10435&view=rev
Author:   sevyves
Date:     2008-12-10 15:15:55 +0000 (Wed, 10 Dec 2008)

Log Message:
-----------
change timeout

Modified Paths:
--------------
    trunk/externals/pidip/modules/pdp_v4l2.c

Modified: trunk/externals/pidip/modules/pdp_v4l2.c
===================================================================
--- trunk/externals/pidip/modules/pdp_v4l2.c	2008-12-10 08:29:19 UTC (rev 10434)
+++ trunk/externals/pidip/modules/pdp_v4l2.c	2008-12-10 15:15:55 UTC (rev 10435)
@@ -205,20 +205,20 @@
     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);
     }
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list