mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #6733 from hrydgard/psmf-loop-fix
Reload the stream on loop. Fixes #6703.
This commit is contained in:
commit
78ddffee2c
1 changed files with 2 additions and 0 deletions
|
@ -1082,10 +1082,12 @@ int _PsmfPlayerFillRingbuffer(PsmfPlayer *psmfplayer) {
|
|||
if (addMax <= 0)
|
||||
break;
|
||||
} while (size > 0);
|
||||
|
||||
if (psmfplayer->readSize >= psmfplayer->streamSize && videoLoopStatus == PSMF_PLAYER_CONFIG_LOOP) {
|
||||
// start looping
|
||||
psmfplayer->readSize = 0;
|
||||
pspFileSystem.SeekFile(psmfplayer->filehandle, psmfplayer->fileoffset, FILEMOVE_BEGIN);
|
||||
psmfplayer->mediaengine->loadStream(psmfplayer->mediaengine->m_mpegheader, 2048, psmfplayer->mediaengine->m_ringbuffersize);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue