summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-09-18 09:39:20 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-19 06:03:49 +0000
commit7549c26ba514b5d9e66553ee02d8aa15498866ec (patch)
treeeec81a148f09ffb6c5285ae9f826af9158269583
parent0a04419758847fc3196823a6881933ad27009f1f (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) (cherry picked from commit 34c56786c4ea78c67012b2294dabb3dccc48461d)
-rw-r--r--src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp b/src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp
index 8eb961dcb..4b1c6c12e 100644
--- a/src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp
+++ b/src/plugins/multimedia/ffmpeg/qffmpegmediacapturesession.cpp
@@ -152,7 +152,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:"