1
Description: patch 2/2 to fix uncommon Mumble segfault with PulseAudio
2
From 63f35d6a097dcf33ad0a27d8ed90572a64cae925 Mon Sep 17 00:00:00 2001
3
From: Mikkel Krautz <mikkel@krautz.dk>
4
Date: Wed, 23 Jul 2014 20:30:30 +0200
5
Last-Updated: 2014-07-23
6
Subject: [PATCH 5/5] PulseAudio: don't call pa_stream_drop() for empty
9
It is now explicitly spelled out in the PulseAudio docs that one
10
must not call pa_stream_drop() when the buffer peeked via
11
pa_stream_peek() is empty.
13
This change fixes our calls to pa_stream_drop() to comply with the
18
src/mumble/PulseAudio.cpp | 8 ++++++--
19
1 file changed, 6 insertions(+), 2 deletions(-)
21
diff --git a/src/mumble/PulseAudio.cpp b/src/mumble/PulseAudio.cpp
22
index 48d76f9..ce96774 100644
23
--- a/src/mumble/PulseAudio.cpp
24
+++ b/src/mumble/PulseAudio.cpp
25
@@ -469,7 +469,9 @@ void PulseAudioSystem::read_callback(pa_stream *s, size_t bytes, void *userdata)
26
AudioInputPtr ai = g.ai;
27
PulseAudioInput *pai = dynamic_cast<PulseAudioInput *>(ai.get());
36
@@ -506,7 +508,9 @@ void PulseAudioSystem::read_callback(pa_stream *s, size_t bytes, void *userdata)
46
void PulseAudioSystem::write_callback(pa_stream *s, size_t bytes, void *userdata) {