Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
aa298b79
Commit
aa298b79
authored
Dec 04, 2022
by
Julius Künzel
💬
Browse files
[kdenlive_render] Remove workaround for MLT bug that is fixed since long
parent
1f67f8cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
renderer/kdenlive_render.cpp
View file @
aa298b79
...
...
@@ -196,21 +196,14 @@ int main(int argc, char **argv)
}
QString
subtitleFile
=
parser
.
value
(
subtitleOption
);
// older MLT version, does not support embedded consumer in/out in xml, and current
// MLT (6.16) does not pass it onto the multi / movit consumer, so read it manually and enforce
LocaleHandling
::
resetAllLocale
();
QFile
f
(
playlist
);
/*
QFile f(playlist);
QDomDocument doc;
doc.setContent(&f, false);
f.close();
QDomElement consumer = doc.documentElement().firstChildElement(QStringLiteral("consumer"));
if (!consumer.isNull()) {
if
(
consumer
.
hasAttribute
(
QLatin1String
(
"s"
))
||
consumer
.
hasAttribute
(
QLatin1String
(
"r"
)))
{
// Workaround MLT embedded consumer resize (MLT issue #453)
playlist
.
prepend
(
QStringLiteral
(
"xml:"
));
playlist
.
append
(
QStringLiteral
(
"?multi=1"
));
}
}
}*/
int
in
=
-
1
;
auto
*
rJob
=
new
RenderJob
(
render
,
playlist
,
target
,
pid
,
in
,
out
,
subtitleFile
,
&
app
);
QObject
::
connect
(
rJob
,
&
RenderJob
::
renderingFinished
,
rJob
,
[
&
]()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment