update timecode/position display where appropriate
git-svn-id: svn://localhost/ardour2/branches/3.0@12015 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
45ac9c8861
commit
260db68a69
@ -404,6 +404,8 @@ MackieControlProtocol::periodic ()
|
|||||||
(*s)->periodic (now_usecs);
|
(*s)->periodic (now_usecs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update_timecode_display ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -719,6 +721,10 @@ MackieControlProtocol::format_timecode_timecode (framepos_t now_frame)
|
|||||||
void
|
void
|
||||||
MackieControlProtocol::update_timecode_display()
|
MackieControlProtocol::update_timecode_display()
|
||||||
{
|
{
|
||||||
|
if (surfaces.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boost::shared_ptr<Surface> surface = surfaces.front();
|
boost::shared_ptr<Surface> surface = surfaces.front();
|
||||||
|
|
||||||
if (surface->type() != mcu || !surface->has_timecode_display()) {
|
if (surface->type() != mcu || !surface->has_timecode_display()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user