Commit 6b43a1d3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

PulseAudio: destroy context like stream

parent 2e09a58d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment