Feature: Clear thread proxy queue on reset (fixes #2080)

This commit is contained in:
Vicki Pfau 2021-03-25 23:16:39 -07:00
parent 9ac9366257
commit e62c24c588
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ void mVideoThreadProxyReset(struct mVideoLogger* logger) {
ConditionWake(&proxyRenderer->toThreadCond); ConditionWake(&proxyRenderer->toThreadCond);
ConditionWait(&proxyRenderer->fromThreadCond, &proxyRenderer->mutex); ConditionWait(&proxyRenderer->fromThreadCond, &proxyRenderer->mutex);
} }
RingFIFOClear(&proxyRenderer->dirtyQueue);
MutexUnlock(&proxyRenderer->mutex); MutexUnlock(&proxyRenderer->mutex);
} }