From caa7f632b7b2103db9cb83d13d6064149a9ff079 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Mon, 28 Oct 2024 17:15:55 -0700 Subject: [PATCH] fix filter in/out when resize transition by move clip --- src/models/multitrackmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/multitrackmodel.cpp b/src/models/multitrackmodel.cpp index 30b8eac3b1..a04f25eded 100644 --- a/src/models/multitrackmodel.cpp +++ b/src/models/multitrackmodel.cpp @@ -1901,6 +1901,8 @@ void MultitrackModel::trimTransitionIn(int trackIndex, int clipIndex, int delta, Mlt::ClipInfo info; playlist.clip_info(clipIndex, &info); playlist.resize_clip(clipIndex, info.frame_in - (slip ? delta : 0), info.frame_out - delta); + if (slip) + MLT.adjustClipFilters(*info.producer, info.frame_in, info.frame_out, -delta, 0, 0); // Adjust filters. playlist.clip_info(clipIndex + 2, &info); @@ -1984,6 +1986,8 @@ void MultitrackModel::trimTransitionOut(int trackIndex, int clipIndex, int delta Mlt::ClipInfo info; playlist.clip_info(clipIndex, &info); playlist.resize_clip(clipIndex, info.frame_in + delta, info.frame_out + (slip ? delta : 0)); + if (slip) + MLT.adjustClipFilters(*info.producer, info.frame_in, info.frame_out, 0, -delta, 0); // Adjust filters. playlist.clip_info(clipIndex - 2, &info);