Skip to content

Commit

Permalink
Merge pull request #597 from nvllsvm/mpv0.38.0
Browse files Browse the repository at this point in the history
Fix compatibility with mpv 0.38.0
  • Loading branch information
iwalton3 authored Apr 18, 2024
2 parents d05f06d + f3f1ade commit e037ea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/player/PlayerComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e037ea7

Please sign in to comment.