diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-09-18 09:39:20 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-09-19 07:50:24 +0000 |
commit | 57c08e3291f8548dd4ae821429740a7c13a27e17 (patch) | |
tree | 080dd0e4481e2d846b3406a4dfb3ec2735a1c461 | |
parent | 55517575ec573a87d91254fba1de54c7cb69e0b9 (diff) |
QFFmpegMediaCaptureSession: fix compilation with C++20
C++20 deprecated the implicit capture of 'this' in [=]. There's
nothing captured except 'this', so just use [this].
Amends 98347e9fd38fada7c681671d629d912de53b7c6d.
Change-Id: I22847c620b8791e1fa41ea5d23998da1e9840471
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
(cherry picked from commit 64bc6d242c0ac66f5cc6e66ebf63be9521a8c49e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 7ff59937c8545a62752757120015d40504f95ceb)
-rw-r--r-- | src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp b/src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp index 5047f48c0..f2b1889ed 100644 --- a/src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp +++ b/src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp @@ -163,7 +163,7 @@ void QFFmpegMediaCaptureSession::updateAudioSink() m_audioIODevice = m_audioSink->start(); if (m_audioIODevice) { connect(m_audioInput, &QFFmpegAudioInput::newAudioBuffer, m_audioSink.get(), - [=](const QAudioBuffer &buffer) { + [this](const QAudioBuffer &buffer) { if (m_audioBufferSize < preferredAudioSinkBufferSize(*m_audioInput)) { qCDebug(qLcFFmpegMediaCaptureSession) << "Recreate audiosink due to small buffer size:" |