all repos — mgba @ 982bc486b0dac7ae7fb91e58b28d8f5dc5364c03

mGBA Game Boy Advance Emulator

Feature: Fix video logger with no channel backing
Vicki Pfau vi@endrift.com
Mon, 03 Jun 2019 09:49:54 -0700
commit

982bc486b0dac7ae7fb91e58b28d8f5dc5364c03

parent

c6b61d512382169d771fc3a0e8202352289a7f3b

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/feature/video-logger.csrc/feature/video-logger.c

@@ -293,7 +293,7 @@

bool mVideoLoggerRendererRun(struct mVideoLogger* logger, bool block) { struct mVideoLogChannel* channel = logger->dataContext; uint32_t ignorePackets = 0; - if (channel->injectionPoint == LOGGER_INJECTION_IMMEDIATE && !channel->injecting) { + if (channel && channel->injectionPoint == LOGGER_INJECTION_IMMEDIATE && !channel->injecting) { mVideoLoggerRendererRunInjected(logger); ignorePackets = channel->ignorePackets; }

@@ -304,7 +304,7 @@ continue;

} switch (item.type) { case DIRTY_SCANLINE: - if (channel->injectionPoint == LOGGER_INJECTION_FIRST_SCANLINE && !channel->injecting && item.address == 0) { + if (channel && channel->injectionPoint == LOGGER_INJECTION_FIRST_SCANLINE && !channel->injecting && item.address == 0) { mVideoLoggerRendererRunInjected(logger); ignorePackets = channel->ignorePackets; }