-int Render::connectPlaylist()
-{
- if (!m_mltConsumer) return -1;
- //m_mltConsumer->set("refresh", "0");
- m_mltConsumer->connect(*m_mltProducer);
- m_mltProducer->set_speed(0);
- if (m_mltConsumer->start() == -1) {
- // ARGH CONSUMER BROKEN!!!!
- KMessageBox::error(qApp->activeWindow(), i18n("Could not create the video preview window.\nThere is something wrong with your Kdenlive install or your driver settings, please fix it."));
- delete m_mltConsumer;
- m_mltConsumer = NULL;
- return -1;
- }
- emit durationChanged(m_mltProducer->get_playtime());
- return 0;
- //refresh();
-}
-
-void Render::refreshDisplay()
-{
-
- if (!m_mltProducer) return;
- //m_mltConsumer->set("refresh", 0);
-
- //mlt_properties properties = MLT_PRODUCER_PROPERTIES(m_mltProducer->get_producer());
- /*if (KdenliveSettings::osdtimecode()) {
- mlt_properties_set_int( properties, "meta.attr.timecode", 1);
- mlt_properties_set( properties, "meta.attr.timecode.markup", "#timecode#");
- m_osdInfo->set("dynamic", "1");
- m_mltProducer->attach(*m_osdInfo);
- }
- else {
- m_mltProducer->detach(*m_osdInfo);
- m_osdInfo->set("dynamic", "0");
- }*/
- refresh();
-}
-