13
0

don't spin on Session::timecode_transmission_suspended() if disconnected from JACK because it will never be re-enabled (fixes lockups when disconnected)

git-svn-id: svn://localhost/ardour2/branches/3.0@13007 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-07-10 04:05:48 +00:00
parent 2de80a5e90
commit 65bb82ce82

View File

@ -29,6 +29,7 @@
#include "gtkmm2ext/utils.h"
#include "ardour/audioengine.h"
#include "ardour/audioregion.h"
#include "ardour/dB.h"
#include "ardour/midi_region.h"
@ -2170,9 +2171,11 @@ CursorDrag::start_grab (GdkEvent* event, Gdk::Cursor* c)
s->cancel_audition ();
}
s->request_suspend_timecode_transmission ();
while (!s->timecode_transmission_suspended ()) {
/* twiddle our thumbs */
if (AudioEngine::instance()->connected()) {
s->request_suspend_timecode_transmission ();
while (AudioEngine::instance()->connected() && !s->timecode_transmission_suspended ()) {
/* twiddle our thumbs */
}
}
}