GBA Video: Fix minor errors
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Aug 2016 00:08:04 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gba/renderers/thread-proxy.c
→
src/gba/renderers/thread-proxy.c
@@ -126,7 +126,7 @@ }
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 @@ }
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) {