Commit 18f4dcd1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

PulseAudio: destroy context like stream

(not cherry picked from commit 6b43a1d3cdd2047bbe86d0b584e550e1fda060e0)
parent 36ea215d
......@@ -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);
......
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