mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-04 00:15:53 +02:00
Merge pull request #78 from Fayth/mantis-1964
Mantis#1964: video looping fix.
This commit is contained in:
commit
cb348a266a
@ -261,7 +261,7 @@ bool CVideoPlayer::nextFrame()
|
|||||||
if (doLoop && !gotError)
|
if (doLoop && !gotError)
|
||||||
{
|
{
|
||||||
// Rewind
|
// Rewind
|
||||||
if (av_seek_frame(format, stream, 0, 0) < 0)
|
if (av_seek_frame(format, stream, 0, AVSEEK_FLAG_BYTE) < 0)
|
||||||
break;
|
break;
|
||||||
gotError = true;
|
gotError = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user