MTC Slave: fix return approx position.
git-svn-id: svn://localhost/ardour2/branches/3.0@13270 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
beee5d09b8
commit
0e7654255c
|
@ -635,9 +635,13 @@ std::string
|
|||
MTC_Slave::approximate_current_position() const
|
||||
{
|
||||
SafeTime last;
|
||||
if (last.timestamp == 0) {
|
||||
return "--:--:--:--";
|
||||
}
|
||||
read_current (&last);
|
||||
return Timecode::timecode_format_sampletime(
|
||||
last.position,
|
||||
double(session.frame_rate()),
|
||||
25, false);
|
||||
Timecode::timecode_to_frames_per_second(mtc_timecode),
|
||||
Timecode::timecode_has_drop_frames(mtc_timecode));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user