Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 997:296ccd36f626 tony-2.0-integration
Merge through to branch for Tony 2.0
author | Chris Cannam |
---|---|
date | Thu, 20 Aug 2015 14:54:21 +0100 |
parents | 4d54882bbf73 |
children | f2c63ec85901 |
comparison
equal
deleted
inserted
replaced
943:788b7623bfca | 997:296ccd36f626 |
---|---|
164 } | 164 } |
165 | 165 |
166 void | 166 void |
167 ViewManager::setPlaybackFrame(sv_frame_t f) | 167 ViewManager::setPlaybackFrame(sv_frame_t f) |
168 { | 168 { |
169 if (f < 0) f = 0; | |
169 if (m_playbackFrame != f) { | 170 if (m_playbackFrame != f) { |
170 m_playbackFrame = f; | 171 m_playbackFrame = f; |
171 emit playbackFrameChanged(f); | 172 emit playbackFrameChanged(f); |
172 if (m_playSource && m_playSource->isPlaying()) { | 173 if (m_playSource && m_playSource->isPlaying()) { |
173 m_playSource->play(f); | 174 m_playSource->play(f); |