[vlc-commits] PulseAudio: destroy context like stream
Rémi Denis-Courmont
git at videolan.org
Thu Aug 11 17:00:02 CEST 2011
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 10 22:27:23 2011 +0300| [18f4dcd11438861831ca09ebf72d73fa902d511c] | committer: Rémi Denis-Courmont
PulseAudio: destroy context like stream
(not cherry picked from commit 6b43a1d3cdd2047bbe86d0b584e550e1fda060e0)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=18f4dcd11438861831ca09ebf72d73fa902d511c
---
modules/audio_output/pulse.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index f25d80e..bbc8575 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -639,8 +639,11 @@ static void Close (vlc_object_t *obj)
pa_stream_unref(s);
}
- if (ctx != NULL)
+ if (ctx != NULL) {
+ pa_context_disconnect(ctx);
+ pa_context_set_state_callback (ctx, NULL, NULL);
pa_context_unref(ctx);
+ }
pa_threaded_mainloop_unlock(mainloop);
pa_threaded_mainloop_free(mainloop);
free(sys);
More information about the vlc-commits
mailing list