aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-04-17 00:27:13 -0700
committerChris Robinson <[email protected]>2010-04-17 00:27:13 -0700
commit4d15391c88fb6facab0f06298627298439cda58c (patch)
tree619cbf8399b9f1194a156d4f7a954cd1eefe2ae0
parentfc2473f8264a6b6677306fcfec35180d58827203 (diff)
Disable PulseAudio's write callback when disconnecting
-rw-r--r--Alc/pulseaudio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c
index d91d2e16..45112938 100644
--- a/Alc/pulseaudio.c
+++ b/Alc/pulseaudio.c
@@ -749,6 +749,7 @@ static void pulse_stop_playback(ALCdevice *device) //{{{
ppa_threaded_mainloop_lock(data->loop);
+ ppa_stream_set_write_callback(data->stream, NULL, NULL);
ppa_stream_disconnect(data->stream);
ppa_stream_unref(data->stream);
data->stream = NULL;