Explorar el Código

Possibly fixes looping videos;

Fay hace 10 años
padre
commit
b03eb56706
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/CVideoHandler.cpp

+ 1 - 1
client/CVideoHandler.cpp

@@ -261,7 +261,7 @@ bool CVideoPlayer::nextFrame()
 			if (doLoop && !gotError)
 			{
 				// Rewind
-				if (av_seek_frame(format, stream, 0, 0) < 0)
+				if (av_seek_frame(format, stream, 0, AVSEEK_FLAG_BYTE) < 0)
 					break;
 				gotError = true;
 			}