mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
End the video when we run out of packets.
If there are no audio or video packets left, even if we haven't hit the pts, the video is over. Fixes #6135, hanging in Chinese translation of Clannad.
This commit is contained in:
parent
548d27e95c
commit
df22d0609f
1 changed files with 2 additions and 1 deletions
|
@ -1395,7 +1395,8 @@ int scePsmfPlayerUpdate(u32 psmfPlayer)
|
|||
}
|
||||
|
||||
DEBUG_LOG(ME, "scePsmfPlayerUpdate(%08x)", psmfPlayer);
|
||||
if ((s64)psmfplayer->psmfPlayerAvcAu.pts >= (s64)psmfplayer->totalDurationTimestamp - VIDEO_FRAME_DURATION_TS) {
|
||||
bool videoPtsEnd = (s64)psmfplayer->psmfPlayerAvcAu.pts >= (s64)psmfplayer->totalDurationTimestamp - VIDEO_FRAME_DURATION_TS;
|
||||
if (videoPtsEnd || (psmfplayer->mediaengine->IsVideoEnd() && psmfplayer->mediaengine->IsNoAudioData())) {
|
||||
if (videoLoopStatus == PSMF_PLAYER_CONFIG_NO_LOOP && psmfplayer->videoStep >= 1) {
|
||||
if (psmfplayer->status != PSMF_PLAYER_STATUS_PLAYING_FINISHED) {
|
||||
psmfplayer->ScheduleFinish(psmfPlayer);
|
||||
|
|
Loading…
Add table
Reference in a new issue