mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 03:27:40 +01:00
parent
bab78c2b4f
commit
2e286e4271
@ -59,8 +59,8 @@ Mpris1::Mpris1(PlayerInterface* player, ArtLoader* art_loader, QObject* parent,
|
||||
player_ = new Mpris1Player(player, this);
|
||||
tracklist_ = new Mpris1TrackList(player, this);
|
||||
|
||||
connect(art_loader, SIGNAL(ArtLoaded(Song,QString)),
|
||||
player_, SLOT(CurrentSongChanged(Song,QString)));
|
||||
connect(art_loader, SIGNAL(ArtLoaded(const Song&, const QString&, const QImage&)),
|
||||
player_, SLOT(CurrentSongChanged(const Song&, const QString&, const QImage&)));
|
||||
}
|
||||
|
||||
Mpris1::~Mpris1() {
|
||||
@ -109,7 +109,8 @@ void Mpris1Player::EngineStateChanged(Engine::State state) {
|
||||
emit CapsChange(GetCaps(state));
|
||||
}
|
||||
|
||||
void Mpris1Player::CurrentSongChanged(const Song& song, const QString& art_uri) {
|
||||
void Mpris1Player::CurrentSongChanged(
|
||||
const Song& song, const QString& art_uri, const QImage&) {
|
||||
last_metadata_ = Mpris1::GetMetadata(song);
|
||||
|
||||
if (!art_uri.isEmpty()) {
|
||||
|
@ -146,7 +146,8 @@ public:
|
||||
void ShowOSD();
|
||||
|
||||
public slots:
|
||||
void CurrentSongChanged(const Song& song, const QString& art_uri);
|
||||
void CurrentSongChanged(
|
||||
const Song& song, const QString& art_uri, const QImage&);
|
||||
|
||||
signals:
|
||||
void CapsChange(int);
|
||||
|
Loading…
x
Reference in New Issue
Block a user