diff options
| author | Markus Wick <markus@selfnet.de> | 2015-08-15 20:52:12 +0200 |
|---|---|---|
| committer | Markus Wick <markus@selfnet.de> | 2015-08-15 20:52:12 +0200 |
| commit | e60018abd4124dcd7021e2c66f8134e5d907b74b (patch) | |
| tree | 6542b2c906e6fbfc73c886709fd02e2260056c25 /Source/Core/AudioCommon/PulseAudioStream.cpp | |
| parent | 909ab23df56f6d0da90fdaa29f6f5300cc1cf178 (diff) | |
| parent | b0cc02658b43c0d6ba40f36a707709691dcaf408 (diff) | |
Merge pull request #2854 from Tilka/valgrind
Fix some small stuff found with Valgrind
Diffstat (limited to 'Source/Core/AudioCommon/PulseAudioStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/PulseAudioStream.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/PulseAudioStream.cpp b/Source/Core/AudioCommon/PulseAudioStream.cpp index 199d426474..b897f8beae 100644 --- a/Source/Core/AudioCommon/PulseAudioStream.cpp +++ b/Source/Core/AudioCommon/PulseAudioStream.cpp @@ -163,7 +163,8 @@ void PulseAudio::StateCallback(pa_context* c) void PulseAudio::UnderflowCallback(pa_stream* s) { m_pa_ba.tlength += BUFFER_SAMPLES * m_channels * m_bytespersample; - pa_stream_set_buffer_attr(s, &m_pa_ba, nullptr, nullptr); + pa_operation* op = pa_stream_set_buffer_attr(s, &m_pa_ba, nullptr, nullptr); + pa_operation_unref(op); WARN_LOG(AUDIO, "pulseaudio underflow, new latency: %d bytes", m_pa_ba.tlength); } |
