File Fix-MVP-Compatibility.patch of Package jellyfin-media-player

diff '--color=auto' -rub jellyfin-media-player-1.9.1.original/src/player/PlayerComponent.cpp jellyfin-media-player-1.9.1/src/player/PlayerComponent.cpp
--- jellyfin-media-player-1.9.1.original/src/player/PlayerComponent.cpp	2023-04-23 14:13:11.000000000 -0300
+++ jellyfin-media-player-1.9.1/src/player/PlayerComponent.cpp	2024-05-09 21:58:12.659490637 -0300
@@ -318,6 +318,10 @@
   command << "loadfile" << qurl.toString(QUrl::FullyEncoded);
   command << "append-play"; // if nothing is playing, play it now, otherwise just enqueue it
 
+  #if MPV_CLIENT_API_VERSION >= MPV_MAKE_VERSION(2, 3)
+    command << -1; // insert_at_idx
+  #endif
+
   QVariantMap extraArgs;
 
   quint64 startMilliseconds = options["startMilliseconds"].toLongLong();
openSUSE Build Service is sponsored by