Fix writing max strem ID in RR metadata

This commit is contained in:
Jeffrey Pfau 2014-08-07 01:13:03 -07:00
parent ba993980dc
commit a4cd807b70
1 changed files with 2 additions and 1 deletions

View File

@ -147,8 +147,9 @@ bool GBARRReinitStream(struct GBARRContext* rr, enum GBARRInitFrom initFrom) {
rr->streamId = 0;
rr->maxStreamId = 0;
_emitTag(rr, rr->metadataFile, TAG_MAX_STREAM);
rr->maxStreamIdOffset = rr->metadataFile->seek(rr->metadataFile, 0, SEEK_CUR);
_emitTag(rr, rr->metadataFile, 1);
rr->metadataFile->write(rr->metadataFile, &rr->maxStreamId, sizeof(rr->maxStreamId));
return true;
}