Fix typos found via `codespell --skip .git -w`
This commit is contained in:
parent
74c84bf474
commit
e2110e73ba
|
@ -43,6 +43,6 @@ should start ffmpeg automatically.
|
||||||
## Build instructions
|
## Build instructions
|
||||||
The application depends on the c++utilities library. It is built in the same way as c++utilities.
|
The application depends on the c++utilities library. It is built in the same way as c++utilities.
|
||||||
|
|
||||||
The following Qt modules are requried (version 5.6 or higher): core dbus
|
The following Qt modules are required (version 5.6 or higher): core dbus
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ void FfmpegLauncher::nextSong()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (const std::ios_base::failure &failure) {
|
} catch (const std::ios_base::failure &failure) {
|
||||||
cerr << "Warning: Can't parse info.ini because an IO error occured: " << failure.what() << endl;
|
cerr << "Warning: Can't parse info.ini because an IO error occurred: " << failure.what() << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// determine target name/path
|
// determine target name/path
|
||||||
|
|
|
@ -38,11 +38,11 @@ PlayerWatcher::PlayerWatcher(const QString &appName, bool ignorePlaybackStatus,
|
||||||
if (!connect(m_mediaPlayerServiceWatcher, &QDBusServiceWatcher::serviceOwnerChanged, this, &PlayerWatcher::serviceOwnerChanged)) {
|
if (!connect(m_mediaPlayerServiceWatcher, &QDBusServiceWatcher::serviceOwnerChanged, this, &PlayerWatcher::serviceOwnerChanged)) {
|
||||||
cout << "Warning: Unable to connect \"serviceOwnerChanged\" signal of service watcher." << endl;
|
cout << "Warning: Unable to connect \"serviceOwnerChanged\" signal of service watcher." << endl;
|
||||||
}
|
}
|
||||||
// The code below does not work anymore with the newest version of Spotify.
|
// The code below might not work with some players:
|
||||||
//if(!connect(m_propertiesInterface, &OrgFreedesktopDBusPropertiesInterface::PropertiesChanged, this, &PlayerWatcher::propertiesChanged)) {
|
//if(!connect(m_propertiesInterface, &OrgFreedesktopDBusPropertiesInterface::PropertiesChanged, this, &PlayerWatcher::propertiesChanged)) {
|
||||||
// cout << "Warning: Unable to connect \"PropertiesChanged\" signal of properties interface." << endl;
|
// cout << "Warning: Unable to connect \"PropertiesChanged\" signal of properties interface." << endl;
|
||||||
//}
|
//}
|
||||||
// However, the following works:
|
// However, the following seems to work always:
|
||||||
if (!QDBusConnection::sessionBus().connect(m_mediaPlayerInterfaceName, QStringLiteral("/org/mpris/MediaPlayer2"),
|
if (!QDBusConnection::sessionBus().connect(m_mediaPlayerInterfaceName, QStringLiteral("/org/mpris/MediaPlayer2"),
|
||||||
QStringLiteral("org.freedesktop.DBus.Properties"), QStringLiteral("PropertiesChanged"), this, SLOT(propertiesChanged()))) {
|
QStringLiteral("org.freedesktop.DBus.Properties"), QStringLiteral("PropertiesChanged"), this, SLOT(propertiesChanged()))) {
|
||||||
cout << "Warning: Unable to connect \"PropertiesChanged\" signal of properties interface." << endl;
|
cout << "Warning: Unable to connect \"PropertiesChanged\" signal of properties interface." << endl;
|
||||||
|
|
Loading…
Reference in New Issue