[Kdenlive-devel] void Monitor::setupMenu ... dropFrames->setChecked(true);

Al a_kirk at hughes.net
Fri Jan 8 23:35:14 UTC 2010


It appears that it should be:  dropFrames->setChecked(false);
I'm also thinking that maybe monitor-dropframes should be initially set 
to project drop B frames.

testing code:

void Render::setDropFrames(bool show)
{
   if (m_mltConsumer) {
       int dropFrames = 1;
       dropFrames= m_mltConsumer->get_int("play.real_time");  // well, 
I'm not on a Mac...
       kDebug() << "df was "<< dropFrames;
       dropFrames = 1;
       if (show == false) dropFrames = 0;
       kDebug() << "df now is "<< dropFrames;
       m_mltConsumer->stop();
#ifdef Q_WS_MAC
       m_mltConsumer->set("real_time", dropFrames);
#else
       m_mltConsumer->set("play.real_time", dropFrames);
#endif
       if (m_mltConsumer->start() == -1) {
           kDebug() << "ERROR, Cannot start monitor";
       }

   }
}





More information about the Kdenlive mailing list