From 9cc97410d3804f85390d08313c92d089dec6d3b0 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 29 Jul 2014 23:39:55 -0700 Subject: [PATCH] Make sure not to reload an old rr stream chunk when reaching the end of a file --- src/gba/gba-rr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/gba-rr.c b/src/gba/gba-rr.c index 911dc873f..0c9ad267c 100644 --- a/src/gba/gba-rr.c +++ b/src/gba/gba-rr.c @@ -263,6 +263,7 @@ bool _seekTag(struct GBARRContext* rr, struct VFile* vf, enum GBARRTag tag) { enum GBARRTag readTag; while ((readTag = _readTag(rr, vf)) != tag) { if (readTag == TAG_END) { + rr->nextTime = 0; while (_readTag(rr, vf) != TAG_EOF); if (!rr->nextTime || !GBARRLoadStream(rr, rr->nextTime)) { return false;