Fix external timecode GUI display
Only show mis/matching TC if FPS has been detected and timecode master is locked.
This commit is contained in:
parent
c87bec07cd
commit
6487d6c62b
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue