From 1c85dba0df52d7329b3aaa78a84338866d833124 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 6 Sep 2024 23:22:06 -0700 Subject: [PATCH] Core: Fix creating mVL contexts dropping the savestate --- src/feature/video-logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/feature/video-logger.c b/src/feature/video-logger.c index adcbea276..4044a4928 100644 --- a/src/feature/video-logger.c +++ b/src/feature/video-logger.c @@ -516,7 +516,7 @@ struct mVideoLogContext* mVideoLogContextCreate(struct mCore* core) { context->initialStateSize = vf->size(vf); context->initialState = anonymousMemoryMap(context->initialStateSize); vf->seek(vf, 0, SEEK_SET); - vf->write(vf, context->initialState, context->initialStateSize); + vf->read(vf, context->initialState, context->initialStateSize); vf->close(vf); core->startVideoLog(core, context); }