diff --git a/libs/ardour/presentation_info.cc b/libs/ardour/presentation_info.cc index 3d8a4ee271..d7c70bcc31 100644 --- a/libs/ardour/presentation_info.cc +++ b/libs/ardour/presentation_info.cc @@ -71,7 +71,7 @@ PresentationInfo::unsuspend_change_signal () { Glib::Threads::Mutex::Lock lm (static_signal_lock); - if (g_atomic_int_get (&_change_signal_suspended) == 1) { + if (g_atomic_int_dec_and_test (&_change_signal_suspended)) { /* atomically grab currently pending flags */ @@ -92,8 +92,6 @@ PresentationInfo::unsuspend_change_signal () lm.acquire (); } } - - g_atomic_int_add (&_change_signal_suspended, -1); } void