Skip to content
GitLab
Menu
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
1185d96d
Commit
1185d96d
authored
Feb 25, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix thumbnails for playlist clips having a different resolution than project profile.
Related to
#1314
parent
04327470
Pipeline
#142082
passed with stage
in 7 minutes and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
1185d96d
...
...
@@ -658,7 +658,7 @@ std::shared_ptr<Mlt::Producer> ProjectClip::thumbProducer()
// Xml producers can corrupt the profile, so enforce width/height again after loading
int
profileWidth
=
profile
->
width
();
int
profileHeight
=
profile
->
height
();
m_thumbsProducer
.
reset
(
new
Mlt
::
Producer
(
*
profile
,
mltService
.
toUtf8
().
constData
()
,
mltResource
.
toUtf8
().
constData
()));
m_thumbsProducer
.
reset
(
new
Mlt
::
Producer
(
*
profile
,
"consumer"
,
mltResource
.
toUtf8
().
constData
()));
profile
->
set_width
(
profileWidth
);
profile
->
set_height
(
profileHeight
);
}
else
{
...
...
src/jobs/cliploadtask.cpp
View file @
1185d96d
...
...
@@ -242,7 +242,7 @@ void ClipLoadTask::generateThumbnail(std::shared_ptr<ProjectClip>binClip, std::s
if
(
mltService
.
startsWith
(
QLatin1String
(
"xml"
)))
{
int
profileWidth
=
profile
->
width
();
int
profileHeight
=
profile
->
height
();
thumbProd
.
reset
(
new
Mlt
::
Producer
(
*
profile
,
mltService
.
toUtf8
().
constData
()
,
mltResource
.
toUtf8
().
constData
()));
thumbProd
.
reset
(
new
Mlt
::
Producer
(
*
profile
,
"consumer"
,
mltResource
.
toUtf8
().
constData
()));
profile
->
set_width
(
profileWidth
);
profile
->
set_height
(
profileHeight
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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