changeset 1465:f31ccc5f3fb8

Don't attempt performance alignment when not in align mode
author Chris Cannam
date Fri, 24 May 2019 15:13:57 +0100
parents 6bd413aff85c
children 0ecfaa463c1b
files view/ViewManager.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/view/ViewManager.cpp	Mon May 20 15:04:32 2019 +0100
+++ b/view/ViewManager.cpp	Fri May 24 15:13:57 2019 +0100
@@ -211,7 +211,7 @@
 #ifdef DEBUG_VIEW_MANAGER
     cerr << "ViewManager::alignPlaybackFrameToReference(" << frame << "): playback model is " << m_playbackModel << endl;
 #endif
-    if (!m_playbackModel) {
+    if (!m_playbackModel || !m_alignMode) {
         return frame;
     } else {
         sv_frame_t f = m_playbackModel->alignToReference(frame);
@@ -228,7 +228,7 @@
 #ifdef DEBUG_VIEW_MANAGER
     cerr << "ViewManager::alignReferenceToPlaybackFrame(" << frame << "): playback model is " << m_playbackModel << endl;
 #endif
-    if (!m_playbackModel) {
+    if (!m_playbackModel || !m_alignMode) {
         return frame;
     } else {
         sv_frame_t f = m_playbackModel->alignFromReference(frame);