ensure that ALL xrun handling is done from the GUI thread

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3487 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2008-06-23 22:06:47 +00:00
parent b52004a777
commit 6aa60b4d51

View 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);
}