Feature: Fix video logger with no channel backing
Vicki Pfau vi@endrift.com
Mon, 03 Jun 2019 09:49:54 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/feature/video-logger.c
→
src/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; }