summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-12-27 02:15:28 +0000
committerCarl Hetherington <carl@carlh.net>2011-12-27 02:15:28 +0000
commit3239706d4066b5a1cbf3c2e19e597f11a356ea8d (patch)
tree5abce3e4c40e4c6ef4061af1c62edbd81e1133bf /gtk2_ardour
parent6304261b980419eaafde84bc32ff5e8f1c7aa236 (diff)
Fix mistake in error checking of audio clock BBT times (#4589)
git-svn-id: svn://localhost/ardour2/branches/3.0@11089 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/audio_clock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc
index 7d37f9cea8..37ed13595a 100644
--- a/gtk2_ardour/audio_clock.cc
+++ b/gtk2_ardour/audio_clock.cc
@@ -1915,10 +1915,10 @@ AudioClock::frame_duration_from_bbt_string (framepos_t pos, const string& str) c
Timecode::BBT_Time bbt;
- if (sscanf (str.c_str(), BBT_SCANF_FORMAT, &bbt.bars, &bbt.beats, &bbt.ticks) != 0) {
+ if (sscanf (str.c_str(), BBT_SCANF_FORMAT, &bbt.bars, &bbt.beats, &bbt.ticks) != 3) {
return 0;
}
-
+
return _session->tempo_map().bbt_duration_at(pos,bbt,1);
}