Fix SDL consumer not updating to correct FPS, causing very choppy audio when...

Fix SDL consumer not updating to correct FPS, causing very choppy audio when opening a project with an fps different than default settings
parent b8a051ab
Pipeline #2255 passed with stage
in 18 minutes and 25 seconds
......@@ -1351,6 +1351,9 @@ float GLWidget::scale() const
void GLWidget::reloadProfile()
{
// The profile display aspect ratio may have changed.
if (m_consumer) {
m_consumer->set("mlt_profile", pCore->getCurrentProfilePath().toUtf8().constData());
}
resizeGL(width(), height());
refreshSceneLayout();
}
......
......@@ -124,7 +124,6 @@ TimelineModel::TimelineModel(Mlt::Profile *profile, std::weak_ptr<DocUndoStack>
m_blackClip->set("aspect_ratio", 1);
m_blackClip->set("length", INT_MAX);
m_blackClip->set("set.test_audio", 0);
m_blackClip->set("length", INT_MAX);
m_blackClip->set_in_and_out(0, TimelineModel::seekDuration);
m_tractor->insert_track(*m_blackClip, 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