mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-24 23:03:35 +01:00
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:
1 parent
6c53f19854
commit
647d6c0960
2 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user