From c0d7cfbf0b99e4cf6e28a0a2b9727e5fc2a453ab Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 30 Aug 2015 22:54:53 -0700 Subject: [PATCH] GBA Audio: Allow GBAAVStream to have no video callback --- CHANGES | 1 + src/gba/gba.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 0002e7c6d..b176a4f95 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,7 @@ Misc: - SDL: Support fullscreen in SDL 1.2 - GBA: Attempting to save a screenshot-style savestate should be allowed without libpng - GBA: Better memory handling with PNG savestates + - GBA Audio: Allow GBAAVStream to have no video callback 0.3.0: (2015-08-16) Features: diff --git a/src/gba/gba.c b/src/gba/gba.c index 49aed1c58..25dccec13 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -812,7 +812,7 @@ void GBAFrameEnded(struct GBA* gba) { } } - if (gba->stream) { + if (gba->stream && gba->stream->postVideoFrame) { gba->stream->postVideoFrame(gba->stream, gba->video.renderer); }