diff options
author | Nathan Stewart <therealnathanstewart@gmail.com> | 2016-09-06 20:14:25 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-13 19:26:36 -0500 |
commit | 3b7cb8275a447773b48bea093bdc801c3f484ad6 (patch) | |
tree | 3165e493cf789d03c801cbfae99bae06c8ccd277 /libs/ardour/audioengine.cc | |
parent | f41bc70ee900257d2d9008f3a749981b10de16bc (diff) |
Fixes 7004 - Ardour crash on Just Quit when AudioEngine is stopped. AudioEngine::stop() if running() is not true and _backend->stop() is true, mutex was being unlocked without being locked.
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r-- | libs/ardour/audioengine.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 30c2113c06..2ca80e3eee 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -906,7 +906,9 @@ AudioEngine::stop (bool for_latency) stop_engine = false; } else { if (_backend->stop ()) { - pl.release (); + if (pl.locked ()) { + pl.release (); + } return -1; } } |