rdpsnd/pulse: Fix crashes in pulseaudio
Function pa_stream_trigger has to be called under lock to avoid following crashes on asserts: Assertion 'e->mainloop->n_enabled_defer_events > 0' failed at pulse/mainloop.c:257, function mainloop_defer_enable(). Aborting. Assertion '!e->next' failed at pulsecore/queue.c:104, function pa_queue_pop(). Aborting. Assertion 'q->front' failed at pulsecore/queue.c:81, function pa_queue_push(). Aborting.
This commit is contained in:
parent
425942dd96
commit
2fec57f1a0
@ -584,7 +584,9 @@ static void rdpsnd_pulse_start(rdpsndDevicePlugin* device)
|
||||
if (!pulse->stream)
|
||||
return;
|
||||
|
||||
pa_threaded_mainloop_lock(pulse->mainloop);
|
||||
pa_stream_trigger(pulse->stream, NULL, NULL);
|
||||
pa_threaded_mainloop_unlock(pulse->mainloop);
|
||||
}
|
||||
|
||||
COMMAND_LINE_ARGUMENT_A rdpsnd_pulse_args[] =
|
||||
|
Loading…
Reference in New Issue
Block a user