[svn r514] added a sleep on livetv read file trunk
authorrenatofilho
Thu Apr 05 19:39:13 2007 +0100 (2007-04-05)
branchtrunk
changeset 509f88d659b2d50
parent 508 224adf6cd007
child 510 4abc2d465d80
[svn r514] added a sleep on livetv read file
gmyth/src/gmyth_file_transfer.c
gmyth/src/gmyth_livetv.c
     1.1 --- a/gmyth/src/gmyth_file_transfer.c	Thu Apr 05 16:02:08 2007 +0100
     1.2 +++ b/gmyth/src/gmyth_file_transfer.c	Thu Apr 05 19:39:13 2007 +0100
     1.3 @@ -688,6 +688,10 @@
     1.4          if (ret_strlist != NULL && gmyth_string_list_length (ret_strlist) > 0) { 
     1.5              bytes_sent = gmyth_string_list_get_int (ret_strlist,  0); // -1 on backend error
     1.6  	        gmyth_debug ( "[%s] got SENT buffer message = %d\n", __FUNCTION__, bytes_sent );
     1.7 +        } 
     1.8 +
     1.9 +        if (read_unlimited && (bytes_sent == 0)) {
    1.10 +            g_usleep (300);
    1.11          }
    1.12  
    1.13      } while (read_unlimited && (bytes_sent == 0));
     2.1 --- a/gmyth/src/gmyth_livetv.c	Thu Apr 05 16:02:08 2007 +0100
     2.2 +++ b/gmyth/src/gmyth_livetv.c	Thu Apr 05 19:39:13 2007 +0100
     2.3 @@ -470,7 +470,7 @@
     2.4      	  	}
     2.5  	
     2.6  		} /* if - changes the channel number */
     2.7 -    sleep (4);                  /* FIXME: this is evil (tpm) */
     2.8 +    //sleep (4);                  /* FIXME: this is evil (tpm) */
     2.9    }
    2.10    
    2.11    /* DEBUG message */