summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-01-12 18:04:12 +0100
committerRobin Gareus <robin@gareus.org>2020-01-12 18:04:12 +0100
commit6487d6c62b9180b8d6e8e4c7b87d2be04c9fa185 (patch)
tree89d1f239b02f1c93fabc1958d1100700bab00e0d /gtk2_ardour/ardour_ui.cc
parentc87bec07cdc934409e471fa3e25674c2edf73d22 (diff)
Fix external timecode GUI display
Only show mis/matching TC if FPS has been detected and timecode master is locked.
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index b5ff6eed86..83609a6d70 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -1348,12 +1348,13 @@ ARDOUR_UI::update_timecode_format ()
boost::shared_ptr<TimecodeTransportMaster> tcmaster;
boost::shared_ptr<TransportMaster> tm = TransportMasterManager::instance().current();
- if ((tm->type() == LTC || tm->type() == MTC) && (tcmaster = boost::dynamic_pointer_cast<TimecodeTransportMaster>(tm)) != 0) {
+ if ((tm->type() == LTC || tm->type() == MTC) && (tcmaster = boost::dynamic_pointer_cast<TimecodeTransportMaster>(tm)) != 0 && tm->locked()) {
matching = (tcmaster->apparent_timecode_format() == _session->config.get_timecode_format());
} else {
matching = true;
}
+
snprintf (buf, sizeof (buf), S_("Timecode|TC: <span foreground=\"%s\">%s</span>"),
matching ? X_("green") : X_("red"),
Timecode::timecode_format_name (_session->config.get_timecode_format()).c_str());