Fix writing max strem ID in RR metadata
Jeffrey Pfau jeffrey@endrift.com
Thu, 07 Aug 2014 01:13:03 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-rr.c
→
src/gba/gba-rr.c
@@ -147,8 +147,9 @@ _emitTag(rr, rr->metadataFile, TAG_INIT | 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; }