mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 04:28:49 +03:00
Make clazy happy
This commit is contained in:
parent
eed23cdf11
commit
8214e8dcf2
1 changed files with 18 additions and 16 deletions
|
@ -29,12 +29,14 @@ MxcMediaProxy::MxcMediaProxy(QObject *parent)
|
||||||
static_cast<int>(error),
|
static_cast<int>(error),
|
||||||
errorString.toStdString());
|
errorString.toStdString());
|
||||||
});
|
});
|
||||||
connect(this, &MxcMediaProxy::mediaStatusChanged, [this](QMediaPlayer::MediaStatus status) {
|
connect(
|
||||||
|
this, &MxcMediaProxy::mediaStatusChanged, this, [this](QMediaPlayer::MediaStatus status) {
|
||||||
nhlog::ui()->info("Media player status {} and error {}",
|
nhlog::ui()->info("Media player status {} and error {}",
|
||||||
static_cast<int>(status),
|
static_cast<int>(status),
|
||||||
static_cast<int>(this->error()));
|
static_cast<int>(this->error()));
|
||||||
});
|
});
|
||||||
connect(this, &MxcMediaProxy::playbackStateChanged, [this](QMediaPlayer::PlaybackState status) {
|
connect(
|
||||||
|
this, &MxcMediaProxy::playbackStateChanged, this, [this](QMediaPlayer::PlaybackState status) {
|
||||||
// We only set the output when starting the playback because otherwise the audio device
|
// We only set the output when starting the playback because otherwise the audio device
|
||||||
// lookup takes about 500ms, which causes a lot of stutter...
|
// lookup takes about 500ms, which causes a lot of stutter...
|
||||||
if (status == QMediaPlayer::PlayingState && !audioOutput()) {
|
if (status == QMediaPlayer::PlayingState && !audioOutput()) {
|
||||||
|
|
Loading…
Reference in a new issue