Mercurial > hg > svgui
changeset 1185:f32828ea63d9 3.0-integration
Minor debug tweaks
author | Chris Cannam |
---|---|
date | Wed, 14 Dec 2016 11:56:47 +0000 |
parents | 97d0c798c2ac |
children | 8665e0ffa0d8 ff042979331b |
files | view/ViewManager.cpp |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
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;