Commit eea5da49 authored by Nicolas Carion's avatar Nicolas Carion

fix compilation

parent 10a263fd
Pipeline #1958 passed with stage
in 14 minutes and 35 seconds
......@@ -612,7 +612,7 @@ std::shared_ptr<Mlt::Producer> ProjectClip::getTimelineProducer(int trackId, int
resource = m_service;
}
QString url = QString("timewarp:%1:%2").arg(locale.toString(speed)).arg(resource);
warpProducer.reset(new Mlt::Producer(originalProducer()->get_profile(), url.toUtf8().constData()));
warpProducer.reset(new Mlt::Producer(*originalProducer()->profile(), url.toUtf8().constData()));
qDebug() << "new producer: " << url;
qDebug() << "warp LENGTH before" << warpProducer->get_length();
int original_length = originalProducer()->get_length();
......
......@@ -138,7 +138,7 @@ void ClipController::addMasterProducer(const std::shared_ptr<Mlt::Producer> &pro
namespace {
QString producerXml(const std::shared_ptr<Mlt::Producer> &producer, bool includeMeta)
{
Mlt::Consumer c(producer->get_profile(), "xml", "string");
Mlt::Consumer c(*producer->profile(), "xml", "string");
Mlt::Service s(producer->get_service());
if (!s.is_valid()) {
return QString();
......
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