The recent description of the highly viscous flow in terms of irreversible structural Eshelby rearrangements is extended to calculate the heat capacity of a glass former at a constant cooling rate through the glass transition. The result is compared to measured data from the literature, showing that the explanation works both for polymers and other glass formers.