From 4d15391c88fb6facab0f06298627298439cda58c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 17 Apr 2010 00:27:13 -0700 Subject: Disable PulseAudio's write callback when disconnecting --- Alc/pulseaudio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Alc') 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; -- cgit v1.2.3