Commit dc80cd73 authored by Nicolas Carion's avatar Nicolas Carion Committed by Jean-Baptiste Mardelle
Browse files

Avoid relying on xml to clone a clip.

CCBUG: 377255
parent dbc6793d
......@@ -175,9 +175,15 @@ const QByteArray Clip::xml()
return c.get("string");
Mlt::Producer *Clip::clone() {
Mlt::Producer *prod = new Mlt::Producer(*m_producer.profile(), "xml-string", xml().constData());
return prod;
Mlt::Producer *Clip::clone()
QString service = QString::fromLatin1(m_producer.get("mlt_service"));
QString resource = QString::fromLatin1(m_producer.get("resource"));
Mlt::Producer *clone = new Mlt::Producer(*m_producer.profile(), service.toUtf8().constData(), resource.toUtf8().constData());
Mlt::Properties original(m_producer.get_properties());
Mlt::Properties cloneProps(clone->get_properties());
return clone;
Mlt::Producer *Clip::softClone(const char*list) {
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