mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Delay scePsmfPlayerStart() when seeking.
It seems to only delay when it was already playing.
This commit is contained in:
parent
ceebdca2fb
commit
0c77d3c2ea
1 changed files with 2 additions and 1 deletions
|
@ -1297,6 +1297,7 @@ int scePsmfPlayerStart(u32 psmfPlayer, u32 psmfPlayerData, int initPts)
|
|||
|
||||
// Does not alter current pts, it just catches up when Update()/etc. get there.
|
||||
|
||||
int delayUs = psmfplayer->status == PSMF_PLAYER_STATUS_PLAYING ? 3000 : 0;
|
||||
psmfplayer->status = PSMF_PLAYER_STATUS_PLAYING;
|
||||
psmfplayer->warmUp = 0;
|
||||
|
||||
|
@ -1333,7 +1334,7 @@ int scePsmfPlayerStart(u32 psmfPlayer, u32 psmfPlayerData, int initPts)
|
|||
|
||||
psmfplayer->seekDestTimeStamp = initPts;
|
||||
__PsmfPlayerContinueSeek(psmfplayer);
|
||||
return 0;
|
||||
return delayUs == 0 ? 0 : hleDelayResult(0, "psmfplayer start", delayUs);
|
||||
}
|
||||
|
||||
int scePsmfPlayerDelete(u32 psmfPlayer)
|
||||
|
|
Loading…
Add table
Reference in a new issue