Skip to content

Commit

Permalink
fix filter in/out when resize transition by move clip
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Oct 29, 2024
1 parent 8a8bace commit caa7f63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/models/multitrackmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit caa7f63

Please sign in to comment.