From a09bb6d51ad83085f1c4e04a30a19a744a83c749 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 3 Aug 2014 19:47:02 -0700 Subject: [PATCH] Detect basic desync in rr --- src/gba/gba-rr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gba/gba-rr.c b/src/gba/gba-rr.c index 3f6af1141..4b7057cc4 100644 --- a/src/gba/gba-rr.c +++ b/src/gba/gba-rr.c @@ -213,6 +213,9 @@ void GBARRNextFrame(struct GBARRContext* rr) { rr->inputThisFrame = false; } else { + if (rr->peekedTag == TAG_INPUT) { + GBALog(0, GBA_LOG_WARN, "RR desync detected!"); + } if (!_seekTag(rr, rr->movieStream, TAG_FRAME)) { uint32_t endStreamId = rr->streamId; GBARRStopPlaying(rr);