# HG changeset patch # User Chris Cannam # Date 1558707237 -3600 # Node ID f31ccc5f3fb8b8696681425e273bd5ef168a76f2 # Parent 6bd413aff85ca032351e60c9cab578cd27d68571 Don't attempt performance alignment when not in align mode diff -r 6bd413aff85c -r f31ccc5f3fb8 view/ViewManager.cpp --- 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);