Reduce sceMpegRingbufferAvailableSize() logspam.

It's really mostly interesting when it changes only.
This commit is contained in:
Unknown W. Brackets 2013-12-14 12:59:50 -08:00
parent 323fc9a999
commit 5220115708

View File

@ -915,7 +915,13 @@ int sceMpegRingbufferAvailableSize(u32 ringbufferAddr)
}
hleEatCycles(2020);
DEBUG_LOG(ME, "%i=sceMpegRingbufferAvailableSize(%08x)", ringbuffer->packetsFree, ringbufferAddr);
static int lastFree = 0;
if (lastFree != ringbuffer->packetsFree) {
DEBUG_LOG(ME, "%i=sceMpegRingbufferAvailableSize(%08x)", ringbuffer->packetsFree, ringbufferAddr);
lastFree = ringbuffer->packetsFree;
} else {
VERBOSE_LOG(ME, "%i=sceMpegRingbufferAvailableSize(%08x)", ringbuffer->packetsFree, ringbufferAddr);
}
return ringbuffer->packetsFree;
}