GBA Audio: Allow GBAAVStream to have no video callback

This commit is contained in:
Jeffrey Pfau 2015-08-30 22:54:53 -07:00
parent 20b0c0d2fb
commit c0d7cfbf0b
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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);
}