GBA Video: Fix minor errors

This commit is contained in:
Jeffrey Pfau 2016-08-18 00:08:04 -07:00
parent c3b411fb6b
commit e7226e7649
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ void GBAVideoThreadProxyRendererDeinit(struct GBAVideoRenderer* renderer) {
void _proxyThreadRecover(struct GBAVideoThreadProxyRenderer* proxyRenderer) {
MutexLock(&proxyRenderer->mutex);
while (proxyRenderer->threadState != PROXY_THREAD_STOPPED) {
if (proxyRenderer->threadState != PROXY_THREAD_STOPPED) {
MutexUnlock(&proxyRenderer->mutex);
return;
}
@ -139,7 +139,7 @@ void _proxyThreadRecover(struct GBAVideoThreadProxyRenderer* proxyRenderer) {
static bool _writeData(struct GBAVideoThreadProxyRenderer* proxyRenderer, void* data, size_t length) {
while (!RingFIFOWrite(&proxyRenderer->dirtyQueue, data, length)) {
mLOG(GBA_VIDEO, WARN, "Can't write 0x%zu bytes. Proxy thread asleep?", length);
mLOG(GBA_VIDEO, WARN, "Can't write %zu bytes. Proxy thread asleep?", length);
mLOG(GBA_VIDEO, DEBUG, "Queue status: read: %p, write: %p", proxyRenderer->dirtyQueue.readPtr, proxyRenderer->dirtyQueue.writePtr);
MutexLock(&proxyRenderer->mutex);
if (proxyRenderer->threadState == PROXY_THREAD_STOPPED) {