Commit 390ccd9e authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Pass proper display name to VLC

This makes streams from Elisa show up as 'Elisa' instead of 'elisa' in the audio KCM
parent 6cf74777
Pipeline #95378 passed with stage
in 17 seconds
......@@ -13,6 +13,7 @@
#include <QAudio>
#include <QDir>
#include <QGuiApplication>
#if defined Q_OS_WIN
......@@ -95,7 +96,7 @@ AudioWrapper::AudioWrapper(QObject *parent) : QObject(parent), d(std::make_uniqu
{
d->mParent = this;
d->mInstance = libvlc_new(0, nullptr);
libvlc_set_user_agent(d->mInstance, "elisa", "Elisa Music Player");
libvlc_set_user_agent(d->mInstance, QGuiApplication::applicationDisplayName().toUtf8().constData(), "Elisa Music Player");
libvlc_set_app_id(d->mInstance, "org.kde.elisa", ELISA_VERSION_STRING, "elisa");
d->mPlayer = libvlc_media_player_new(d->mInstance);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment