summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-07-10 04:18:06 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-07-10 04:18:06 +0000
commitcf49671ab462926139e8b9f5d9a98453d03b3827 (patch)
treeacbade46756a5584672b105f025ad26d0c62228e
parent65bb82ce82365ce44295324b40d49b7d1c043b4c (diff)
add a comment to the previous change
git-svn-id: svn://localhost/ardour2/branches/3.0@13008 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/editor_drag.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index 797ed4ffd7..8a601d25cb 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -2171,7 +2171,16 @@ CursorDrag::start_grab (GdkEvent* event, Gdk::Cursor* c)
s->cancel_audition ();
}
+
if (AudioEngine::instance()->connected()) {
+
+ /* do this only if we're the engine is connected
+ * because otherwise this request will never be
+ * serviced and we'll busy wait forever. likewise,
+ * notice if we are disconnected while waiting for the
+ * request to be serviced.
+ */
+
s->request_suspend_timecode_transmission ();
while (AudioEngine::instance()->connected() && !s->timecode_transmission_suspended ()) {
/* twiddle our thumbs */