diff options
author | Mikko Hallamaa <mikko.hallamaa@qt.io> | 2024-01-09 16:54:51 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-01-16 16:13:06 +0000 |
commit | 74e51fff171de33f5b831413a506e216db08477c (patch) | |
tree | f5cffb07f474b9ada13e71143295c315ffc4f3be /src | |
parent | 2ce6d1f0e5d02d17162d1fc519e00559fa632743 (diff) |
Name flush operation pointer
PulseAudio flush operation pointer was unnamed which was flagged by
CodeChecker.
Now operation is named so it will be deleted at the end of scope instead
of immediately, but that should be fine.
Pick-to: 6.6 6.5
Change-Id: Iedae2b24253bb1fb515efae61dfb74be11a241ab
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
(cherry picked from commit bda4b38c4dc78c9f97ffa12997e74dfa3121672f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/multimedia/pulseaudio/qpulseaudiosink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/pulseaudio/qpulseaudiosink.cpp b/src/multimedia/pulseaudio/qpulseaudiosink.cpp index a330b43dd..f53d55894 100644 --- a/src/multimedia/pulseaudio/qpulseaudiosink.cpp +++ b/src/multimedia/pulseaudio/qpulseaudiosink.cpp @@ -368,7 +368,7 @@ void QPulseAudioSink::close() pa_stream_set_overflow_callback(m_stream, nullptr, nullptr); pa_stream_set_latency_update_callback(m_stream, nullptr, nullptr); - PAOperationUPtr(pa_stream_flush(m_stream, outputStreamFlushComplete, nullptr)); + PAOperationUPtr operation(pa_stream_flush(m_stream, outputStreamFlushComplete, nullptr)); pa_stream_disconnect(m_stream); pa_stream_unref(m_stream); |