Commit 9563095a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Correctly replace timeline producer on bin producer change

parent ac20af72
......@@ -406,6 +406,15 @@ bool ProjectClip::setProducer(std::shared_ptr<Mlt::Producer> producer, bool repl
}
}
pCore->bin()->reloadMonitorIfActive(clipId());
if (m_videoProducer) {
m_videoProducer.reset(m_masterProducer->cut());
if (hasAudio()) {
// disable audio but activate video
m_videoProducer->set("set.test_audio", 1);
m_videoProducer->set("set.test_image", 0);
}
}
replaceInTimeline();
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment