Commit 0afba62b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

PulseAudio: don't assert at exit if PulseAudio died

parent 84f21de4
......@@ -340,14 +340,18 @@ static void Close (vlc_object_t *obj)
pa_stream_set_write_callback(sys->stream, NULL, NULL);
o = pa_stream_flush(sys->stream, success_cb, sys);
if (o != NULL) {
while (pa_operation_get_state(o) == PA_OPERATION_RUNNING)
pa_threaded_mainloop_wait(sys->mainloop);
pa_operation_unref(o);
}
o = pa_stream_drain(sys->stream, success_cb, sys);
if (o != NULL) {
while (pa_operation_get_state(o) == PA_OPERATION_RUNNING)
pa_threaded_mainloop_wait(sys->mainloop);
pa_operation_unref(o);
}
pa_threaded_mainloop_unlock(sys->mainloop);
}
......
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