[vlc-commits] PulseAudio: destroy context like stream

Rémi Denis-Courmont git at videolan.org
Wed Aug 10 21:27:44 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 10 22:27:23 2011 +0300| [6b43a1d3cdd2047bbe86d0b584e550e1fda060e0] | committer: Rémi Denis-Courmont

PulseAudio: destroy context like stream

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b43a1d3cdd2047bbe86d0b584e550e1fda060e0
---

 src/pulse/mainloop.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pulse/mainloop.c b/src/pulse/mainloop.c
index 206c94f..f1d1d77 100644
--- a/src/pulse/mainloop.c
+++ b/src/pulse/mainloop.c
@@ -262,9 +262,9 @@ void vlc_pa_disconnect (vlc_object_t *obj, pa_context *ctx)
 {
     pa_threaded_mainloop *mainloop = vlc_pa_mainloop;
 
-    pa_threaded_mainloop_lock (mainloop);
+    pa_context_disconnect (ctx);
+    pa_context_set_state_callback (ctx, NULL, NULL);
     pa_context_unref (ctx);
-    pa_threaded_mainloop_unlock (mainloop);
 
     vlc_pa_mainloop_deinit (mainloop);
     (void) obj;



More information about the vlc-commits mailing list