Invalidate when writing video image.

It is required to update the framebuffer, of course.  Fixes Dead or Alive
video flicker.
This commit is contained in:
Unknown W. Brackets committed 2014-04-27 08:23:42 -07:00
1 parent 6c53f19854
commit 647d6c0960
2 files changed
+3 -2

No files matched your search

+3 -1
View File
@@ -1318,7 +1318,9 @@ int scePsmfPlayerGetVideoData(u32 psmfPlayer, u32 videoDataAddr)
if (deltapts > 0) {
// Don't advance, just return the same frame again.
// TODO: This also seems somewhat based on Update() calls, but audio is involved too...
psmfplayer->mediaengine->writeVideoImage(videoData->displaybuf, videoData->frameWidth, videoPixelMode);
int displaybufSize = psmfplayer->mediaengine->writeVideoImage(videoData->displaybuf, videoData->frameWidth, videoPixelMode);
// Need to invalidate, even if it didn't change, to trigger upload to framebuffer.
gpu->InvalidateCache(videoData->displaybuf, displaybufSize, GPU_INVALIDATE_SAFE);
psmfplayer->psmfPlayerAvcAu.pts = psmfplayer->mediaengine->getVideoTimeStamp();
videoData->displaypts = (u32)psmfplayer->psmfPlayerAvcAu.pts;
return hleDelayResult(0, "psmfPlayer behind audio", 3000);
-1
View File
@@ -788,7 +788,6 @@ bool MediaEngine::IsNoAudioData() {
// Let's double check. Here should be a safe enough place to demux.
m_demux->demux(m_audioStream);
return !m_demux->hasNextAudioFrame(NULL, NULL, NULL, NULL);
}
s64 MediaEngine::getVideoTimeStamp() {