diff -r aff8c0341462 -r d04e08f9893a libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Thu Mar 08 23:41:10 2007 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Mar 20 21:50:24 2007 +0000 @@ -307,16 +307,18 @@ tmp_buffer, buffer_size, TRUE); - if (!myth_handle->is_livetv && len <= 0) { - g_byte_array_free (tmp_buffer, TRUE); - g_debug ("Fail to read bytes"); - return GNOME_VFS_ERROR_IO; - } - /*else if (len == 0) { - g_byte_array_free (tmp_buffer, TRUE); - g_warning ("End of file probably achieved"); - return GNOME_VFS_ERROR_EOF; - } */ + if ( !myth_handle->is_livetv ) { + if ( len < 0 ) { + g_byte_array_free (tmp_buffer, TRUE); + g_debug ("Fail to read bytes"); + return GNOME_VFS_ERROR_IO; + } else if ( len == 0 ) { + g_byte_array_free (tmp_buffer, TRUE); + g_warning ("End of file probably achieved"); + return GNOME_VFS_ERROR_EOF; + } + } /* if */ + myth_handle->buffer = g_byte_array_append (myth_handle->buffer, tmp_buffer->data, len);