diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-03-01 16:51:18 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-03-16 07:41:30 +0000 |
commit | e7702afc9dfa6e69b1b05d68a38248ccc6b6dd87 (patch) | |
tree | 8d8cfbd6b2ac894dcbb250d9084c7cff099a0b65 /examples/multimedia/audiorecorder/audiorecorder.cpp | |
parent | 7ac9e201ab41f76763477821216665d474ce5ec6 (diff) |
Simplify state handling in QCamera and QMediaRecorder
Remove the loaded/unloaded states. Instead simply have
a boolean indicating whether the camera is active.
Change-Id: I1dad15f2c4f2f606f6d64320cea3763d1213a09b
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples/multimedia/audiorecorder/audiorecorder.cpp')
-rw-r--r-- | examples/multimedia/audiorecorder/audiorecorder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/multimedia/audiorecorder/audiorecorder.cpp b/examples/multimedia/audiorecorder/audiorecorder.cpp index 93913a23b..8bd0cdfc6 100644 --- a/examples/multimedia/audiorecorder/audiorecorder.cpp +++ b/examples/multimedia/audiorecorder/audiorecorder.cpp @@ -147,8 +147,7 @@ void AudioRecorder::updateStatus(QMediaRecorder::Status status) clearAudioLevels(); statusMessage = tr("Paused"); break; - case QMediaRecorder::UnloadedStatus: - case QMediaRecorder::LoadedStatus: + case QMediaRecorder::StoppedStatus: clearAudioLevels(); statusMessage = tr("Stopped"); default: |