1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 03:27:40 +01:00

Fix broken signal in MPRIS1.

Fixes issue #1497
This commit is contained in:
John Maguire 2011-02-23 11:11:17 +00:00
parent bab78c2b4f
commit 2e286e4271
2 changed files with 6 additions and 4 deletions

View File

@ -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()) {

View File

@ -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);