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
d63e3b96
Commit
d63e3b96
authored
Oct 23, 2022
by
Julius Künzel
💬
Browse files
[CI Tests] Fix FreeBSD
parent
cbaf84de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinemodel.cpp
View file @
d63e3b96
...
...
@@ -155,6 +155,7 @@ void TimelineModel::prepareClose()
TimelineModel
::~
TimelineModel
()
{
prepareClose
();
std
::
vector
<
int
>
all_ids
;
for
(
auto
tracks
:
m_iteratorTable
)
{
all_ids
.
push_back
(
tracks
.
first
);
...
...
@@ -4380,17 +4381,19 @@ Fun TimelineModel::deregisterTrack_lambda(int id)
}
auto
it
=
m_iteratorTable
[
id
];
// iterator to the element
int
index
=
getTrackPosition
(
id
);
// compute index in list
// send update to the model
beginRemoveRows
(
QModelIndex
(),
index
,
index
);
if
(
!
m_closing
)
{
// send update to the model
beginRemoveRows
(
QModelIndex
(),
index
,
index
);
}
// melt operation, add 1 to account for black background track
m_tractor
->
remove_track
(
static_cast
<
int
>
(
index
+
1
));
// actual deletion of object
m_allTracks
.
erase
(
it
);
// clean table
m_iteratorTable
.
erase
(
id
);
// Finish operation
endRemoveRows
();
if
(
!
m_closing
)
{
// Finish operation
endRemoveRows
();
int
cache
=
int
(
QThread
::
idealThreadCount
())
+
int
(
m_allTracks
.
size
()
+
1
)
*
2
;
mlt_service_cache_set_size
(
nullptr
,
"producer_avformat"
,
qMax
(
4
,
cache
));
}
...
...
Julius Künzel
💬
@jlskuz
mentioned in commit
87b4c1f6
·
Oct 23, 2022
mentioned in commit
87b4c1f6
mentioned in commit 87b4c1f69735172c3b3fce3d4fb1ef89fe68ba3d
Toggle commit list
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