Skip to content

Commit

Permalink
Fix track do not blend properly when moving tracks
Browse files Browse the repository at this point in the history
As reported here:
#1429

The call to inherit properties from the old transition to the new
transition was also copying the private "f0r_*" and "_ctor-" pointer
properties. This was causing the blending to break and always pass
through the b frame.
  • Loading branch information
bmatherly committed May 4, 2023
1 parent bc66ac6 commit d3fa74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/multitrackmodel.cpp
Expand Up @@ -3163,7 +3163,7 @@ void MultitrackModel::moveTrack(int fromTrackIndex, int toTrackIndex)
}
if (videoTransitions[bTrack].is_valid()) {
Mlt::Transition vTransition (MLT.profile(), videoTransitions[bTrack].get("mlt_service"));
vTransition.inherit(videoTransitions[bTrack]);
vTransition.set("1", videoTransitions[bTrack].get("1"));
if (bTrack == 1) {
vTransition.set("disable", 1);
} else {
Expand Down

0 comments on commit d3fa74c

Please sign in to comment.