818954587967 — Chris Cannam 9 months ago
Fix incorrect stream reference for record latency, resulting in crash when started in record-only mode
1 files changed, 1 insertions(+), 1 deletions(-)

M src/PulseAudioIO.cpp
M src/PulseAudioIO.cpp +1 -1
@@ 598,7 598,7 @@ PulseAudioIO::streamStateChanged(pa_stre
             if (m_target && (stream == m_in)) {
                 m_target->setSystemRecordSampleRate(m_sampleRate);
                 m_target->setSystemRecordChannelCount(m_inSpec.channels);
-                if (pa_stream_get_latency(m_out, &latency, &negative)) {
+                if (pa_stream_get_latency(m_in, &latency, &negative)) {
                     log("streamStateChanged: Failed to query record latency");
                 } else {
                     ostringstream os;