all repos — mgba @ 4d9c375f0e65e2ab634188e5127cf24a1a12a2dc

mGBA Game Boy Advance Emulator

If video sync is suspended, do not wait
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Oct 2014 02:23:54 -0700
commit

4d9c375f0e65e2ab634188e5127cf24a1a12a2dc

parent

c0d1ca089ce1a69f2d22f0515c754593fbbe544a

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -561,7 +561,9 @@ ConditionWake(&sync->videoFrameRequiredCond);

if (!sync->videoFrameOn && !sync->videoFramePending) { return false; } - ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex); + if (sync->videoFrameOn) { + ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex); + } sync->videoFramePending = 0; sync->videoFrameSkip = frameskip; return true;