mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
PA-backend: Flush buffer and wake up main thread at stop
This commit is contained in:
parent
0717c4c71a
commit
8a969b56c9
1 changed files with 4 additions and 0 deletions
|
|
@ -649,6 +649,10 @@ PulseAudioBackend::stop ()
|
||||||
}
|
}
|
||||||
|
|
||||||
_run = false;
|
_run = false;
|
||||||
|
|
||||||
|
pa_threaded_mainloop_lock (p_mainloop);
|
||||||
|
sync_pulse (pa_stream_flush (p_stream, stream_operation_cb, this));
|
||||||
|
|
||||||
if (pthread_join (_main_thread, &status)) {
|
if (pthread_join (_main_thread, &status)) {
|
||||||
PBD::error << _("PulseAudioBackend: failed to terminate.") << endmsg;
|
PBD::error << _("PulseAudioBackend: failed to terminate.") << endmsg;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue