# HG changeset patch # User rosfran # Date 1176750345 -3600 # Node ID 3ddc53d45d68cee71096a30cc82b5e561e1e42d3 # Parent 424babd6b788311e6f138275e023a21b1a0c2924 [svn r559] Added SET_TIMEOU messagte, in order to optimize the FileTransfer download. diff -r 424babd6b788 -r 3ddc53d45d68 gmyth/src/gmyth_livetv.c --- a/gmyth/src/gmyth_livetv.c Mon Apr 16 16:02:22 2007 +0100 +++ b/gmyth/src/gmyth_livetv.c Mon Apr 16 20:05:45 2007 +0100 @@ -472,7 +472,7 @@ } } /* if - changes the channel number */ - //sleep (4); /* FIXME: this is evil (tpm) */ + /* sleep (5); */ /* FIXME: this is evil (tpm) */ } /* DEBUG message */ @@ -801,7 +801,10 @@ if ( gmyth_uri_is_local_file( livetv->uri ) ) livetv->file = GMYTH_FILE( gmyth_file_local_new( livetv->backend_info ) ); else + { livetv->file = GMYTH_FILE( gmyth_file_transfer_new( livetv->backend_info ) ); + gmyth_file_transfer_settimeout( GMYTH_FILE_TRANSFER(livetv->file), TRUE ); + } if ( NULL == livetv->file ) { @@ -811,7 +814,6 @@ g_object_ref( livetv->file ); - /* gmyth_file_transfer_settimeout( livetv->file, TRUE ); */ g_mutex_unlock( livetv->mutex ); done: