mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
prevent a unlikely race: concurrent restore() + work_response ()
This commit is contained in:
parent
bd4424a74e
commit
953b8ac99f
1 changed files with 4 additions and 3 deletions
|
|
@ -521,15 +521,16 @@ work_response (LV2_Handle instance,
|
||||||
const void* data)
|
const void* data)
|
||||||
{
|
{
|
||||||
AFluidSynth* self = (AFluidSynth*)instance;
|
AFluidSynth* self = (AFluidSynth*)instance;
|
||||||
self->reinit_in_progress = false;
|
|
||||||
self->queue_reinit = false;
|
|
||||||
self->inform_ui = true;
|
|
||||||
|
|
||||||
if (self->initialized) {
|
if (self->initialized) {
|
||||||
strcpy (self->current_sf2_file_path, self->queue_sf2_file_path);
|
strcpy (self->current_sf2_file_path, self->queue_sf2_file_path);
|
||||||
} else {
|
} else {
|
||||||
self->current_sf2_file_path[0] = 0;
|
self->current_sf2_file_path[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self->reinit_in_progress = false;
|
||||||
|
self->inform_ui = true;
|
||||||
|
self->queue_reinit = false;
|
||||||
return LV2_WORKER_SUCCESS;
|
return LV2_WORKER_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue