mirror of https://github.com/mgba-emu/mgba.git
Feature: Fix video logger with no channel backing
This commit is contained in:
parent
c6b61d5123
commit
982bc486b0
|
@ -293,7 +293,7 @@ void mVideoLoggerWriteBuffer(struct mVideoLogger* logger, uint32_t bufferId, uin
|
||||||
bool mVideoLoggerRendererRun(struct mVideoLogger* logger, bool block) {
|
bool mVideoLoggerRendererRun(struct mVideoLogger* logger, bool block) {
|
||||||
struct mVideoLogChannel* channel = logger->dataContext;
|
struct mVideoLogChannel* channel = logger->dataContext;
|
||||||
uint32_t ignorePackets = 0;
|
uint32_t ignorePackets = 0;
|
||||||
if (channel->injectionPoint == LOGGER_INJECTION_IMMEDIATE && !channel->injecting) {
|
if (channel && channel->injectionPoint == LOGGER_INJECTION_IMMEDIATE && !channel->injecting) {
|
||||||
mVideoLoggerRendererRunInjected(logger);
|
mVideoLoggerRendererRunInjected(logger);
|
||||||
ignorePackets = channel->ignorePackets;
|
ignorePackets = channel->ignorePackets;
|
||||||
}
|
}
|
||||||
|
@ -304,7 +304,7 @@ bool mVideoLoggerRendererRun(struct mVideoLogger* logger, bool block) {
|
||||||
}
|
}
|
||||||
switch (item.type) {
|
switch (item.type) {
|
||||||
case DIRTY_SCANLINE:
|
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);
|
mVideoLoggerRendererRunInjected(logger);
|
||||||
ignorePackets = channel->ignorePackets;
|
ignorePackets = channel->ignorePackets;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue