If video sync is suspended, do not wait

This commit is contained in:
Jeffrey Pfau 2014-10-18 02:23:54 -07:00
parent c0d1ca089c
commit 4d9c375f0e
1 changed files with 3 additions and 1 deletions

View File

@ -561,7 +561,9 @@ bool GBASyncWaitFrameStart(struct GBASync* sync, int frameskip) {
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;