Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1c660fe9 authored by Nicolas Carion's avatar Nicolas Carion

Enforce kdenlive:id being stored by clipController

parent d6efc183
......@@ -61,6 +61,7 @@ ClipController::ClipController(const QString clipId, std::shared_ptr<BinControll
return;
}
if (m_properties) {
setProducerProperty(QStringLiteral("kdenlive:id"), m_controllerBinId);
m_service = m_properties->get("mlt_service");
QString proxy = m_properties->get("kdenlive:proxy");
QString path = m_properties->get("resource");
......@@ -104,7 +105,7 @@ void ClipController::addMasterProducer(const std::shared_ptr<Mlt::Producer> &pro
QString documentRoot = pCore->currentDoc()->documentRoot();
m_masterProducer = producer;
m_properties = new Mlt::Properties(m_masterProducer->get_properties());
int id = m_properties->get_int("kdenlive:id");
int id = m_controllerBinId.toInt();
m_effectStack = EffectStackModel::construct(producer, {ObjectType::BinClip, id}, pCore->undoStack());
if (!m_masterProducer->is_valid()) {
m_masterProducer = ClipController::mediaUnavailable;
......@@ -128,7 +129,8 @@ void ClipController::addMasterProducer(const std::shared_ptr<Mlt::Producer> &pro
}
m_path = QFileInfo(path).absoluteFilePath();
getInfoForProducer();
emitProducerChanged(QString::number(id), producer);
emitProducerChanged(m_controllerBinId, producer);
setProducerProperty(QStringLiteral("kdenlive:id"), m_controllerBinId);
}
}
......
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