| 91 | } |
| 92 | |
| 93 | int CRecordVideo::Stop() |
| 94 | { |
| 95 | int nRet = 0; |
| 96 | qDebug(log) << "Stop"; |
| 97 | #if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0) |
| 98 | m_Recorder.stop(); |
| 99 | m_CaptureSession.setVideoFrameInput(nullptr); |
| 100 | m_CaptureSession.setAudioBufferInput(nullptr); |
| 101 | m_CaptureSession.setRecorder(nullptr); |
| 102 | #endif |
| 103 | |
| 104 | return nRet; |
| 105 | } |
| 106 | |
| 107 | void CRecordVideo::slotUpdate(QImage img) |
| 108 | { |