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
09c5f795
Commit
09c5f795
authored
Oct 13, 2019
by
Jean-Baptiste Mardelle
Browse files
Import mixer master effects
parent
85d70754
Pipeline
#8927
passed with stage
in 15 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/builders/meltBuilder.cpp
View file @
09c5f795
...
...
@@ -38,6 +38,7 @@
#include <mlt++/MltPlaylist.h>
#include <mlt++/MltProducer.h>
#include <mlt++/MltProfile.h>
#include <mlt++/MltFilter.h>
#include <mlt++/MltTransition.h>
#include <QApplication>
...
...
@@ -62,6 +63,15 @@ bool constructTimelineFromMelt(const std::shared_ptr<TimelineItemModel> &timelin
QLatin1String
(
"black_track"
)};
bool
ok
=
true
;
qDebug
()
<<
"//////////////////////
\n
Trying to construct"
<<
tractor
.
count
()
<<
"tracks.
\n
////////////////////////////////"
;
// Import master track effects
for
(
int
i
=
0
;
i
<
tractor
.
filter_count
();
i
++
)
{
std
::
unique_ptr
<
Mlt
::
Filter
>
filter
(
tractor
.
filter
(
i
));
if
(
filter
->
get_int
(
"internal_added"
)
>
0
)
{
timeline
->
tractor
()
->
attach
(
*
filter
.
get
());
}
}
QList
<
int
>
videoTracksIndexes
;
// Black track index
videoTracksIndexes
<<
0
;
...
...
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