Thin-film degassing