Commit 41475127 authored by Corey O'Connor's avatar Corey O'Connor

remove unneeded drop to sw rendering in clipcontroller

parent 13f93856
Pipeline #2962 passed with stage
in 13 minutes and 50 seconds
......@@ -697,14 +697,9 @@ void ClipController::mirrorOriginalProperties(Mlt::Properties &props)
QString progressive = m_properties->get("meta.media.progressive");
if (progressive.isEmpty()) {
// Fetch a frame to initialize required properties
QScopedPointer<Mlt::Producer> tmpProd(nullptr);
if (KdenliveSettings::gpu_accel()) {
QString service = m_masterProducer->get("mlt_service");
tmpProd.reset(new Mlt::Producer(pCore->getCurrentProfile()->profile(), service.toUtf8().constData(), m_masterProducer->get("resource")));
}
auto accelResources = pCore->accelerationManager()->acquireResources();
std::shared_ptr<Mlt::Frame> fr(tmpProd ? tmpProd->get_frame() : m_masterProducer->get_frame());
std::shared_ptr<Mlt::Frame> fr(m_masterProducer->get_frame());
mlt_image_format format = mlt_image_none;
int width = 0;
int height = 0;
......
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