From ef4b203064a589b4e66dede03c0ce106428293a9 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 29 Jul 2017 13:48:01 -0500 Subject: [PATCH] winport (aviout) - make output end with less bugs when the disk is full --- desmume/src/frontend/windows/aviout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/frontend/windows/aviout.cpp b/desmume/src/frontend/windows/aviout.cpp index 761125210..c077e90d4 100644 --- a/desmume/src/frontend/windows/aviout.cpp +++ b/desmume/src/frontend/windows/aviout.cpp @@ -456,7 +456,7 @@ void DRV_AviVideoUpdate() avi_file->bitmap_format.biSizeImage, AVIIF_KEYFRAME, NULL, &avi_file->ByteBuffer))) { - avi_file->valid = 0; + DRV_AviEnd(); return; } @@ -493,7 +493,7 @@ void DRV_AviSoundUpdate(void* soundData, int soundLen) avi_file->sound_samples, samplesPerSegment, avi_file->audio_buffer, audioSegmentSize, 0, NULL, &avi_file->ByteBuffer))) { - avi_file->valid = 0; + DRV_AviEnd(); return; } avi_file->sound_samples += samplesPerSegment;