ensure that ALL xrun handling is done from the GUI thread
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 23 Jun 2008 22:06:47 +0000 (22:06 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 23 Jun 2008 22:06:47 +0000 (22:06 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3487 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui.cc

index b5a19e388e13b22801b36c4afb264b313186ba7c..9e3e576e276e6eccb6cd4156616193cfcd2bf2b6 100644 (file)
@@ -2914,7 +2914,6 @@ ARDOUR_UI::keyboard_settings () const
 void
 ARDOUR_UI::create_xrun_marker(nframes_t where)
 {
-       ENSURE_GUI_THREAD (bind(mem_fun(*this, &ARDOUR_UI::create_xrun_marker), where));
        editor->mouse_add_new_marker (where, false, true);
 }
 
@@ -2929,6 +2928,8 @@ ARDOUR_UI::halt_on_xrun_message ()
 void
 ARDOUR_UI::xrun_handler(nframes_t where)
 {
+       ENSURE_GUI_THREAD (bind(mem_fun(*this, &ARDOUR_UI::xrun_handler), where));
+
        if (Config->get_create_xrun_marker() && session->actively_recording()) {
                create_xrun_marker(where);
        }