From 88c1f20c4b6f05b21f6e12459f28f82db58f98f3 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 affcdb563..80cc60fce 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ Misc: - Qt: Remove useless help icons in dialogs - 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 b308b7061..17dfeb5d4 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -790,7 +790,7 @@ void GBAFrameEnded(struct GBA* gba) { } } - if (gba->stream) { + if (gba->stream && gba->stream->postVideoFrame) { gba->stream->postVideoFrame(gba->stream, gba->video.renderer); }