Commit 7a5e9356 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix bug causing bin effects on color, image and title clips to be duplicated

parent 945b125d
...@@ -685,8 +685,11 @@ std::pair<std::shared_ptr<Mlt::Producer>, bool> ProjectClip::giveMasterAndGetTim ...@@ -685,8 +685,11 @@ std::pair<std::shared_ptr<Mlt::Producer>, bool> ProjectClip::giveMasterAndGetTim
} }
if (state == PlaylistState::VideoOnly) { if (state == PlaylistState::VideoOnly) {
// good, we found a master video producer, and we didn't have any // good, we found a master video producer, and we didn't have any
m_videoProducers[clipId] = std::make_shared<Mlt::Producer>(&master->parent()); if (m_clipType != ClipType::Color && m_clipType != ClipType::Image && m_clipType != ClipType::Text) {
m_effectStack->loadService(m_videoProducers[clipId]); // Color, image and text clips always use master producer in timeline
m_videoProducers[clipId] = std::make_shared<Mlt::Producer>(&master->parent());
m_effectStack->loadService(m_videoProducers[clipId]);
}
return {master, true}; return {master, true};
} }
if (state == PlaylistState::Disabled) { if (state == PlaylistState::Disabled) {
......
Supports Markdown
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