comparison view/ViewManager.cpp @ 1185:f32828ea63d9 3.0-integration

Minor debug tweaks
author Chris Cannam
date Wed, 14 Dec 2016 11:56:47 +0000
parents e0ac21f07ab0
children efc7586de499
comparison
equal deleted inserted replaced
1184:97d0c798c2ac 1185:f32828ea63d9
157 sv_frame_t 157 sv_frame_t
158 ViewManager::getPlaybackFrame() const 158 ViewManager::getPlaybackFrame() const
159 { 159 {
160 if (m_playSource && m_playSource->isPlaying()) { 160 if (m_playSource && m_playSource->isPlaying()) {
161 m_playbackFrame = m_playSource->getCurrentPlayingFrame(); 161 m_playbackFrame = m_playSource->getCurrentPlayingFrame();
162 #ifdef DEBUG_VIEW_MANAGER
163 cout << "ViewManager::getPlaybackFrame(playing) -> " << m_playbackFrame << endl;
164 #endif
165 } else {
166 #ifdef DEBUG_VIEW_MANAGER
167 cout << "ViewManager::getPlaybackFrame(not playing) -> " << m_playbackFrame << endl;
168 #endif
162 } 169 }
163 return m_playbackFrame; 170 return m_playbackFrame;
164 } 171 }
165 172
166 void 173 void
167 ViewManager::setPlaybackFrame(sv_frame_t f) 174 ViewManager::setPlaybackFrame(sv_frame_t f)
168 { 175 {
176 #ifdef DEBUG_VIEW_MANAGER
177 cerr << "ViewManager::setPlaybackFrame(" << f << ")" << endl;
178 #endif
169 if (f < 0) f = 0; 179 if (f < 0) f = 0;
170 if (m_playbackFrame != f) { 180 if (m_playbackFrame != f) {
171 m_playbackFrame = f; 181 m_playbackFrame = f;
172 emit playbackFrameChanged(f); 182 emit playbackFrameChanged(f);
173 if (m_playSource && m_playSource->isPlaying()) { 183 if (m_playSource && m_playSource->isPlaying()) {