Fix encoder speed ignored

BUG: 411000
parent 7d67fdff
Pipeline #6855 passed with stage
in 18 minutes and 41 seconds
......@@ -1468,6 +1468,17 @@ void RenderWidget::generateRenderFiles(QDomDocument doc, const QString &playlist
}
}
// Adjust encoding speed
if (m_view.speed->isEnabled() && m_view.formats->currentItem()) {
QStringList speeds = m_view.formats->currentItem()->data(0, SpeedsRole).toStringList();
if (m_view.speed->value() < speeds.count()) {
QString speedValue = speeds.at(m_view.speed->value());
if (speedValue.contains(QLatin1Char('='))) {
consumer.setAttribute(speedValue.section(QLatin1Char('='), 0, 0), speedValue.section(QLatin1Char('='), 1));
}
}
}
// Adjust scanning
switch (m_view.scanning_list->currentIndex()) {
case 1:
......
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