comparison view/ViewManager.cpp @ 191:be6d31baecb9

compilation under linux - kunbuntu V7.10 (without video support)
author lbajardsilogic
date Wed, 28 Nov 2007 13:03:45 +0000
parents fc9323a41f5a
children
comparison
equal deleted inserted replaced
190:61681a2bc1e6 191:be6d31baecb9
370 std::cout << "ViewManager::seek(" << f << ")" << std::endl; 370 std::cout << "ViewManager::seek(" << f << ")" << std::endl;
371 #endif 371 #endif
372 372
373 if (m_playSource && m_playSource->isPlaying()) { 373 if (m_playSource && m_playSource->isPlaying()) {
374 unsigned long playFrame = m_playSource->getCurrentPlayingFrame(); 374 unsigned long playFrame = m_playSource->getCurrentPlayingFrame();
375 unsigned long diff = max(f, playFrame) - min(f, playFrame); 375 unsigned long diff = MAX(f, playFrame) - MIN(f, playFrame);
376 if (diff > 20000) { 376 if (diff > 20000) {
377 m_playbackFrame = f; 377 m_playbackFrame = f;
378 m_playSource->play(f); 378 m_playSource->play(f);
379 #ifdef DEBUG_VIEW_MANAGER 379 #ifdef DEBUG_VIEW_MANAGER
380 std::cout << "ViewManager::considerSeek: reseeking from " << playFrame << " to " << f << std::endl; 380 std::cout << "ViewManager::considerSeek: reseeking from " << playFrame << " to " << f << std::endl;