1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-07 17:42:35 +02:00

* Fixed compiling MPRIS plugin.

This commit is contained in:
Christian Muehlhaeuser 2011-12-31 03:29:11 +01:00
parent 2ea2b57d92
commit 0460f6f776

View File

@ -68,7 +68,7 @@ MprisPlugin::MprisPlugin()
// When a track is added or removed, CanGoNext updated signal is sent
Tomahawk::playlistinterface_ptr playlist = AudioEngine::instance()->playlist();
if( !playlist.isNull() )
connect( playlist->object(), SIGNAL( trackCountChanged( unsigned int ) ),
connect( playlist.data(), SIGNAL( trackCountChanged( unsigned int ) ),
SLOT( onTrackCountChanged( unsigned int ) ) );
// Connect to AudioEngine's seeked signal
@ -548,7 +548,7 @@ MprisPlugin::onPlaylistChanged( Tomahawk::playlistinterface_ptr playlist )
qDebug() << "playlist not null";
if( !playlist.isNull() )
connect( playlist->object(), SIGNAL( trackCountChanged( unsigned int ) ),
connect( playlist.data(), SIGNAL( trackCountChanged( unsigned int ) ),
SLOT( onTrackCountChanged( unsigned int ) ) );
qDebug() << "connected new playlist";