Skip to content

Commit 88c0ae1

Browse files
authored
Merge pull request #169 from OpenShot/protect_effects
Protect effects with critical (prevents crashing and freezing around transitions)
2 parents 3774f32 + 031c415 commit 88c0ae1

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)