# HG changeset patch # User renatofilho # Date 1175798353 -3600 # Node ID f88d659b2d50e5123a76ac9387bc23ab995ec730 # Parent 224adf6cd007db5e95715bf56ac6713169ed33e4 [svn r514] added a sleep on livetv read file diff -r 224adf6cd007 -r f88d659b2d50 gmyth/src/gmyth_file_transfer.c --- a/gmyth/src/gmyth_file_transfer.c Thu Apr 05 16:02:08 2007 +0100 +++ b/gmyth/src/gmyth_file_transfer.c Thu Apr 05 19:39:13 2007 +0100 @@ -688,6 +688,10 @@ if (ret_strlist != NULL && gmyth_string_list_length (ret_strlist) > 0) { bytes_sent = gmyth_string_list_get_int (ret_strlist, 0); // -1 on backend error gmyth_debug ( "[%s] got SENT buffer message = %d\n", __FUNCTION__, bytes_sent ); + } + + if (read_unlimited && (bytes_sent == 0)) { + g_usleep (300); } } while (read_unlimited && (bytes_sent == 0)); diff -r 224adf6cd007 -r f88d659b2d50 gmyth/src/gmyth_livetv.c --- a/gmyth/src/gmyth_livetv.c Thu Apr 05 16:02:08 2007 +0100 +++ b/gmyth/src/gmyth_livetv.c Thu Apr 05 19:39:13 2007 +0100 @@ -470,7 +470,7 @@ } } /* if - changes the channel number */ - sleep (4); /* FIXME: this is evil (tpm) */ + //sleep (4); /* FIXME: this is evil (tpm) */ } /* DEBUG message */