use new Session API to deal with transport state
[ardour.git] / libs / surfaces / us2400 / mcp_buttons.cc
index af0f268d1d5895183cc47c9ba81afc5766a55785..38657ef3aa2af0aa1fab9b41995410e1120980cd 100644 (file)
@@ -458,7 +458,7 @@ US2400Protocol::marker_release (Button &)
 
        samplepos_t where = session->audible_sample();
 
-       if (session->transport_stopped() && session->locations()->mark_at (where, session->sample_rate() / 100.0)) {
+       if (session->transport_stopped_or_stopping() && session->locations()->mark_at (where, session->sample_rate() / 100.0)) {
                return off;
        }
 
@@ -487,7 +487,7 @@ US2400Protocol::stop_press (Button &)
 LedState
 US2400Protocol::stop_release (Button &)
 {
-       return session->transport_stopped();
+       return session->transport_stopped_or_stopping();
 }
 
 LedState