[mythtv] [patch] firewire bugfix

Jim Westfall jwestfall at surrealistic.net
Tue Feb 8 05:44:37 UTC 2005


hi

initialize tv.tv_usec or it can trigger an EINVAL on the select().

jim

--- mythtv/libs/libmythtv/firewirerecorder.cpp.orig     2005-02-07 21:38:47.161477832 -0800
+++ mythtv/libs/libmythtv/firewirerecorder.cpp  2005-02-07 21:39:56.324963384 -0800
@@ -153,6 +153,7 @@
        FD_ZERO (&rfds);
        FD_SET (fwfd, &rfds);
        tv.tv_sec = FIREWIRE_TIMEOUT;
+       tv.tv_usec = 0;
 
        if(select (fwfd + 1, &rfds, NULL, NULL, &tv) > 0) {
             if(raw1394_loop_iterate(fwhandle) != 0) {



More information about the mythtv-dev mailing list