smoothstreamingenc: Write to a temp file while updating the manifest