From f3f1adec85ea1189dc91a73f6459169891991d2e Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Wed, 17 Apr 2024 21:12:59 -0400 Subject: [PATCH] Fix compatibility with mpv 0.38.0 --- src/player/PlayerComponent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/player/PlayerComponent.cpp b/src/player/PlayerComponent.cpp index bf55aabc..bb0d4a3b 100644 --- a/src/player/PlayerComponent.cpp +++ b/src/player/PlayerComponent.cpp @@ -318,6 +318,10 @@ void PlayerComponent::queueMedia(const QString& url, const QVariantMap& options, 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();