summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2018-07-24 12:53:07 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2018-09-28 11:15:43 +0000
commitad9f763efea36663bf17321459d44e8dd5e5e653 (patch)
tree50938fd01925df149fb061cf2d111d31a0d2523e /src/plugins/avfoundation
parent4b8414b51dac70d949c0f516e1a7d8e723b97c29 (diff)
Gstreamer: Emit stateChanged(StoppedState) when recording is finishedv5.12.0-beta1
When stop is requested, the state becomes QMediaRecorder::StoppedState and stateChanged() is sent immediately, also the status is changed from QMediaRecorder::RecordingStatus to QMediaRecorder::FinalizingStatus. But since stopping is asynchronous QMediaRecorder::StoppedState is sent before recording has been fully finished. When EOS is received from gstreamer and recording has been fully stopped, the status will be changed from QMediaRecorder::FinalizingStatus to QMediaRecorder::LoadedStatus and only in this case. So fixed to send stateChanged(QMediaRecorder::StoppedState) right after LoadedStatus. Task-number: QTBUG-69402 Change-Id: Ic7429a4bfea6b1f443a105a0540737072ad42de2 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/avfoundation')
0 files changed, 0 insertions, 0 deletions