Ticket #1648: 1648-guid-timeout.patch
File 1648-guid-timeout.patch, 1.1 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/linuxfirewiredevice.cpp
871 871 continue; 872 872 } 873 873 874 MythTimer guid_timer; 875 guid_timer.start(); 874 876 for (int node = 0; node < raw1394_get_nodecount(item.handle); node++) 875 877 { 876 878 bool tmp; 877 879 uint64_t guid; 878 880 if (!get_guid(item.handle, 0xffc0 | node, guid, tmp)) 879 881 { 880 if (tmp ) // device has gone off-line temporarily881 { 882 if (tmp && (guid_timer.elapsed() < 200)) 883 { // device has gone off-line temporarily 882 884 usleep(10 * 1000); 883 885 node--; 884 886 } … … 889 891 item.node = node; 890 892 UpdateDeviceListItem(guid, &item); 891 893 guid_online[guid] = true; 894 guid_timer.start(); 892 895 } 893 896 894 897 raw1394_destroy_handle(item.handle);