Don't wait on for a frame if we already have any pending

This commit is contained in:
Jeffrey Pfau 2014-10-19 00:30:07 -07:00
parent 65be8610f3
commit 0a946a0b43
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ bool GBASyncWaitFrameStart(struct GBASync* sync, int frameskip) {
if (!sync->videoFrameOn && !sync->videoFramePending) {
return false;
}
if (sync->videoFrameOn) {
if (sync->videoFrameOn && !sync->videoFramePending) {
ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex);
}
sync->videoFramePending = 0;