[svn r559] Added SET_TIMEOU messagte, in order to optimize the FileTransfer download. trunk
authorrosfran
Mon Apr 16 20:05:45 2007 +0100 (2007-04-16)
branchtrunk
changeset 5543ddc53d45d68
parent 553 424babd6b788
child 555 9da7a61f1561
[svn r559] Added SET_TIMEOU messagte, in order to optimize the FileTransfer download.
gmyth/src/gmyth_livetv.c
     1.1 --- a/gmyth/src/gmyth_livetv.c	Mon Apr 16 16:02:22 2007 +0100
     1.2 +++ b/gmyth/src/gmyth_livetv.c	Mon Apr 16 20:05:45 2007 +0100
     1.3 @@ -472,7 +472,7 @@
     1.4      	  	}
     1.5  	
     1.6  		} /* if - changes the channel number */
     1.7 -    //sleep (4);                  /* FIXME: this is evil (tpm) */
     1.8 +    /* sleep (5); */                  /* FIXME: this is evil (tpm) */
     1.9    }
    1.10    
    1.11    /* DEBUG message */  
    1.12 @@ -801,7 +801,10 @@
    1.13      if ( gmyth_uri_is_local_file( livetv->uri ) ) 
    1.14          livetv->file = GMYTH_FILE( gmyth_file_local_new( livetv->backend_info ) );
    1.15      else
    1.16 +    {
    1.17          livetv->file = GMYTH_FILE( gmyth_file_transfer_new( livetv->backend_info ) );
    1.18 +        gmyth_file_transfer_settimeout( GMYTH_FILE_TRANSFER(livetv->file), TRUE );
    1.19 +    }
    1.20  
    1.21      if ( NULL == livetv->file ) 
    1.22      {
    1.23 @@ -811,7 +814,6 @@
    1.24    
    1.25      g_object_ref( livetv->file );
    1.26  
    1.27 -    /* gmyth_file_transfer_settimeout( livetv->file, TRUE ); */	
    1.28      g_mutex_unlock( livetv->mutex );
    1.29  
    1.30  done: