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
5f65e06b
Commit
5f65e06b
authored
Apr 02, 2021
by
Julius Künzel
Browse files
Fix change speed for slideshow clips
CCBUG: 429795
CCBUG: 428263
CCBUG: 392670
parent
03294277
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
5f65e06b
...
...
@@ -832,6 +832,13 @@ std::shared_ptr<Mlt::Producer> ProjectClip::getTimelineProducer(int trackId, int
warpProducer
->
set
(
"audio_index"
,
audioStream
);
}
//if the producer has a "time-to-live" (frame duration) we need to scale it according to the speed
int
ttl
=
originalProducer
()
->
get_int
(
"ttl"
);
if
(
ttl
>
0
)
{
int
new_ttl
=
ttl
/
std
::
abs
(
speed
)
+
0.5
;
warpProducer
->
set
(
"ttl"
,
std
::
max
(
new_ttl
,
1
));
}
qDebug
()
<<
"warp LENGTH"
<<
warpProducer
->
get_length
();
warpProducer
->
set
(
"set.test_audio"
,
1
);
warpProducer
->
set
(
"set.test_image"
,
1
);
...
...
Write
Preview
Supports
Markdown
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