PA-backend: Flush buffer and wake up main thread at stop
This commit is contained in:
@@ -649,6 +649,10 @@ PulseAudioBackend::stop ()
|
||||
}
|
||||
|
||||
_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)) {
|
||||
PBD::error << _("PulseAudioBackend: failed to terminate.") << endmsg;
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user