diff -r c3fdac309aec -r 1c020e9ef06d libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Wed Jan 24 23:06:53 2007 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Thu Feb 01 22:10:18 2007 +0000 @@ -189,10 +189,12 @@ /* Loop sending the Myth File Transfer request: * Retry whilst authentication fails and we supply it. */ - if ((myth_handle->buffer_remain = myth_handle->buffer->len) < MYTHTV_BUFFER_SIZE) { - //if ( bytes_to_read > myth_handle->buffer_remain ) { + //if (myth_handle->buffer_remain < MYTHTV_BUFFER_SIZE) { + if ( bytes_to_read > myth_handle->buffer_remain ) { GByteArray *tmp_buffer = g_byte_array_new(); + printf ("XXXXXXXXXXXXXX Pedindo %d %d\n", MYTHTV_BUFFER_SIZE, myth_handle->buffer_remain); + gint len = gmyth_file_transfer_read (myth_handle->file_transfer, tmp_buffer, MYTHTV_BUFFER_SIZE - myth_handle->buffer_remain, TRUE);