mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-20 20:09:08 -06:00
Make video loop only for realtime loop mode
This commit is contained in:
@@ -354,10 +354,11 @@ void VideoTileProvider::initializeMpv() {
|
||||
// See order at https://github.com/mpv-player/mpv/blob/master/libmpv/client.h#L420
|
||||
// Avoiding async calls in uninitialized state
|
||||
|
||||
// Loop video
|
||||
// https://mpv.io/manual/master/#options-loop
|
||||
setPropertyStringMpv("loop", "");
|
||||
|
||||
if (_animationMode == AnimationMode::RealTimeLoop) {
|
||||
// Loop video
|
||||
// https://mpv.io/manual/master/#options-loop
|
||||
setPropertyStringMpv("loop", "");
|
||||
}
|
||||
// Allow only OpenGL (requires OpenGL 2.1+ or GLES 2.0+)
|
||||
// https://mpv.io/manual/master/#options-gpu-api
|
||||
setPropertyStringMpv("gpu-api", "opengl");
|
||||
|
||||
Reference in New Issue
Block a user