From 8dd9554eb504e43e392b858003914be3210ba91e Mon Sep 17 00:00:00 2001
From: Andrey Lihatskiy <alihatskiy@productengine.com>
Date: Tue, 9 Nov 2021 02:38:58 +0200
Subject: [PATCH] SL-16333 VLC 3 doesn't support -1 == infinity for
 input-repeat

by Callum
---
 indra/media_plugins/libvlc/media_plugin_libvlc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/media_plugins/libvlc/media_plugin_libvlc.cpp b/indra/media_plugins/libvlc/media_plugin_libvlc.cpp
index ce0947a1bcf..1afe25e9a16 100644
--- a/indra/media_plugins/libvlc/media_plugin_libvlc.cpp
+++ b/indra/media_plugins/libvlc/media_plugin_libvlc.cpp
@@ -354,7 +354,7 @@ void MediaPluginLibVLC::playMedia()
 	// but that appears to always be the case
 	if (mIsLooping)
 	{
-		libvlc_media_add_option(mLibVLCMedia, "input-repeat=-1");
+		libvlc_media_add_option(mLibVLCMedia, "input-repeat=65535");
 	}
 
 	libvlc_media_player_play(mLibVLCMediaPlayer);
-- 
GitLab