restate deleted lines

This commit is contained in:
luiscuenca 2017-11-30 16:43:38 -07:00
parent 98e8361690
commit 5d1f2a04c1

View file

@ -165,7 +165,12 @@ public:
svc->releaseControl(out);
// if multimedia was paused, it will start playing automatically after changing audio device
// 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;