Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/view/ViewManager.cpp Tue Dec 13 16:23:48 2016 +0000 +++ b/view/ViewManager.cpp Wed Dec 14 11:56:47 2016 +0000 @@ -159,6 +159,13 @@ { if (m_playSource && m_playSource->isPlaying()) { m_playbackFrame = m_playSource->getCurrentPlayingFrame(); +#ifdef DEBUG_VIEW_MANAGER + cout << "ViewManager::getPlaybackFrame(playing) -> " << m_playbackFrame << endl; +#endif + } else { +#ifdef DEBUG_VIEW_MANAGER + cout << "ViewManager::getPlaybackFrame(not playing) -> " << m_playbackFrame << endl; +#endif } return m_playbackFrame; } @@ -166,6 +173,9 @@ void ViewManager::setPlaybackFrame(sv_frame_t f) { +#ifdef DEBUG_VIEW_MANAGER + cerr << "ViewManager::setPlaybackFrame(" << f << ")" << endl; +#endif if (f < 0) f = 0; if (m_playbackFrame != f) { m_playbackFrame = f;