Extend recent fix for samples-per-frame to the flush stage.