fix delta display of MClk slave.

git-svn-id: svn://localhost/ardour2/branches/3.0@13298 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus
2012-10-17 15:57:48 +00:00
parent cff8a65db2
commit 501d870b3c

View File

@@ -1124,9 +1124,15 @@ AudioClock::set_timecode (framepos_t when, bool /*force*/)
}
break;
case MIDIClock:
_left_layout->set_text (string_compose ("%1",
sync_source_to_string(sync_src, true)));
_right_layout->set_text (slave->approximate_current_delta());
if (slave) {
_left_layout->set_text (string_compose ("%1",
sync_source_to_string(sync_src, true)));
_right_layout->set_text (slave->approximate_current_delta());
} else {
_left_layout->set_text (string_compose ("%1 --pending--",
sync_source_to_string(sync_src, true)));
_right_layout->set_text ("");
}
break;
case LTC:
if (slave) {