Skip to content

Commit 031c415

Browse files
committed
Protect effects with critical (prevents crashing and freezing around transitions). Thanks Peter!
1 parent 3774f32 commit 031c415

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Timeline.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ void Timeline::add_layer(std::shared_ptr<Frame> new_frame, Clip* source_clip, in
281281
/* Apply effects to the source frame (if any). If multiple clips are overlapping, only process the
282282
* effects on the top clip. */
283283
if (is_top_clip && source_frame)
284+
#pragma omp critical (T_addLayer)
284285
source_frame = apply_effects(source_frame, timeline_frame_number, source_clip->Layer());
285286

286287
// Declare an image to hold the source frame's image

0 commit comments

Comments
 (0)