Fix typos found via `codespell --skip .git -w`

This commit is contained in:
Martchus 2021-07-03 20:03:43 +02:00
parent 74c84bf474
commit e2110e73ba
3 changed files with 4 additions and 4 deletions

View File

@ -43,6 +43,6 @@ should start ffmpeg automatically.
## Build instructions
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

View File

@ -157,7 +157,7 @@ void FfmpegLauncher::nextSong()
}
}
} 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

View File

@ -38,11 +38,11 @@ PlayerWatcher::PlayerWatcher(const QString &appName, bool ignorePlaybackStatus,
if (!connect(m_mediaPlayerServiceWatcher, &QDBusServiceWatcher::serviceOwnerChanged, this, &PlayerWatcher::serviceOwnerChanged)) {
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)) {
// 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"),
QStringLiteral("org.freedesktop.DBus.Properties"), QStringLiteral("PropertiesChanged"), this, SLOT(propertiesChanged()))) {
cout << "Warning: Unable to connect \"PropertiesChanged\" signal of properties interface." << endl;