mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Write video frames even while paused.
This function just writes the video data to the buffer if at all possible.
This commit is contained in:
parent
13b735fd02
commit
c03aa31240
1 changed files with 3 additions and 6 deletions
|
@ -1484,11 +1484,6 @@ int scePsmfPlayerGetVideoData(u32 psmfPlayer, u32 videoDataAddr)
|
|||
return SCE_KERNEL_ERROR_INVALID_VALUE;
|
||||
}
|
||||
|
||||
if (psmfplayer->playMode == PSMF_PLAYER_MODE_PAUSE) {
|
||||
INFO_LOG(HLE, "scePsmfPlayerGetVideoData(%08x): paused mode", psmfPlayer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
hleEatCycles(20000);
|
||||
|
||||
if (!__PsmfPlayerContinueSeek(psmfplayer)) {
|
||||
|
@ -1509,7 +1504,9 @@ int scePsmfPlayerGetVideoData(u32 psmfPlayer, u32 videoDataAddr)
|
|||
|
||||
if (videoData.IsValid()) {
|
||||
bool doVideoStep = true;
|
||||
if (!psmfplayer->mediaengine->IsNoAudioData()) {
|
||||
if (psmfplayer->playMode == PSMF_PLAYER_MODE_PAUSE) {
|
||||
doVideoStep = false;
|
||||
} else if (!psmfplayer->mediaengine->IsNoAudioData()) {
|
||||
s64 deltapts = psmfplayer->mediaengine->getVideoTimeStamp() - psmfplayer->mediaengine->getAudioTimeStamp();
|
||||
if (deltapts > 0) {
|
||||
// Don't advance, just return the same frame again.
|
||||
|
|
Loading…
Add table
Reference in a new issue