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
2883c62a
Commit
2883c62a
authored
Jan 28, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix clip monitor allowing seek past clip length with transparency background enabled
parent
c2558c7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
2883c62a
...
@@ -743,7 +743,9 @@ void Monitor::buildBackgroundedProducer(int pos) {
...
@@ -743,7 +743,9 @@ void Monitor::buildBackgroundedProducer(int pos) {
Mlt
::
Tractor
trac
(
pCore
->
getCurrentProfile
()
->
profile
());
Mlt
::
Tractor
trac
(
pCore
->
getCurrentProfile
()
->
profile
());
QString
color
=
QString
(
"color:%1"
).
arg
(
KdenliveSettings
::
monitor_background
());
QString
color
=
QString
(
"color:%1"
).
arg
(
KdenliveSettings
::
monitor_background
());
std
::
shared_ptr
<
Mlt
::
Producer
>
bg
(
new
Mlt
::
Producer
(
*
trac
.
profile
(),
color
.
toUtf8
().
constData
()));
std
::
shared_ptr
<
Mlt
::
Producer
>
bg
(
new
Mlt
::
Producer
(
*
trac
.
profile
(),
color
.
toUtf8
().
constData
()));
bg
->
set
(
"length"
,
m_controller
->
originalProducer
()
->
get_length
());
int
maxLength
=
m_controller
->
originalProducer
()
->
get_length
();
bg
->
set
(
"length"
,
maxLength
);
bg
->
set
(
"out"
,
maxLength
-
1
);
trac
.
set_track
(
*
bg
.
get
(),
0
);
trac
.
set_track
(
*
bg
.
get
(),
0
);
trac
.
set_track
(
*
m_controller
->
originalProducer
().
get
(),
1
);
trac
.
set_track
(
*
m_controller
->
originalProducer
().
get
(),
1
);
QString
composite
=
TransitionsRepository
::
get
()
->
getCompositingTransition
();
QString
composite
=
TransitionsRepository
::
get
()
->
getCompositingTransition
();
...
...
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