mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 08:23:30 +02:00
restate deleted lines
This commit is contained in:
parent
98e8361690
commit
5d1f2a04c1
1 changed files with 6 additions and 1 deletions
|
@ -165,7 +165,12 @@ public:
|
||||||
svc->releaseControl(out);
|
svc->releaseControl(out);
|
||||||
// if multimedia was paused, it will start playing automatically after changing audio device
|
// if multimedia was paused, it will start playing automatically after changing audio device
|
||||||
// this will reset it back to a paused state
|
// this will reset it back to a paused state
|
||||||
|
if (mediaState == QMediaPlayer::State::PausedState) {
|
||||||
|
player->pause();
|
||||||
|
}
|
||||||
|
else if (mediaState == QMediaPlayer::State::StoppedState) {
|
||||||
|
player->stop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
qDebug() << "QML Audio changed to " << _newTargetDevice;
|
qDebug() << "QML Audio changed to " << _newTargetDevice;
|
||||||
|
|
Loading…
Reference in a new issue