diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-09 19:16:03 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-09 19:16:03 -0400 |
commit | fce8e081e5684b28f9e10dfa14d49a0495de8d45 (patch) | |
tree | 1bebc697db4cc52170e2282a34023a68ee2afc3e /gtk2_ardour/verbose_cursor.cc | |
parent | eab61cbafe4b2f326063079584cf3d8574a028b8 (diff) |
use standardized timecode formatting in verbose cursor
Diffstat (limited to 'gtk2_ardour/verbose_cursor.cc')
-rw-r--r-- | gtk2_ardour/verbose_cursor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/verbose_cursor.cc b/gtk2_ardour/verbose_cursor.cc index 1ed7a82a83..7410792e55 100644 --- a/gtk2_ardour/verbose_cursor.cc +++ b/gtk2_ardour/verbose_cursor.cc @@ -115,7 +115,7 @@ VerboseCursor::set_time (framepos_t frame) case AudioClock::Timecode: _editor->_session->timecode_time (frame, timecode); - snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%02" PRId32 ":%02" PRId32, timecode.hours, timecode.minutes, timecode.seconds, timecode.frames); + snprintf (buf, sizeof (buf), "%s", Timecode::timecode_format_time (timecode).c_str()); break; case AudioClock::MinSec: @@ -185,7 +185,7 @@ VerboseCursor::set_duration (framepos_t start, framepos_t end) case AudioClock::Timecode: _editor->_session->timecode_duration (end - start, timecode); - snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%02" PRId32 ":%02" PRId32, timecode.hours, timecode.minutes, timecode.seconds, timecode.frames); + snprintf (buf, sizeof (buf), "%s", Timecode::timecode_format_time (timecode).c_str()); break; case AudioClock::MinSec: |