"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/commands/undohelper.cpp" between
shotcut-20.09.01.tar.gz and shotcut-20.09.13.tar.gz

About: Shotcut is a cross-platform (Qt) advanced video editor.

undohelper.cpp  (shotcut-20.09.01):undohelper.cpp  (shotcut-20.09.13)
skipping to change at line 382 skipping to change at line 382
} }
void UndoHelper::fixTransitions(Mlt::Playlist playlist, int clipIndex, Mlt::Prod ucer clip) void UndoHelper::fixTransitions(Mlt::Playlist playlist, int clipIndex, Mlt::Prod ucer clip)
{ {
int transitionIndex = 0; int transitionIndex = 0;
for (auto currentIndex : {clipIndex + 1, clipIndex - 1}) { for (auto currentIndex : {clipIndex + 1, clipIndex - 1}) {
// Connect a transition on the right/left to the new producer. // Connect a transition on the right/left to the new producer.
Mlt::Producer producer(playlist.get_clip(currentIndex)); Mlt::Producer producer(playlist.get_clip(currentIndex));
if (producer.is_valid() && producer.parent().get(kShotcutTransitionPrope rty)) { if (producer.is_valid() && producer.parent().get(kShotcutTransitionPrope rty)) {
Mlt::Tractor transition(producer.parent()); Mlt::Tractor transition(producer.parent());
Mlt::Producer transitionClip(transition.track(transitionIndex)); if (transition.is_valid()) {
if (transitionClip.is_valid() && transitionClip.parent().get_service Mlt::Producer transitionClip(transition.track(transitionIndex));
() != clip.parent().get_service()) { if (transitionClip.is_valid() && transitionClip.parent().get_ser
UNDOLOG << "Fixing transition at clip index" << currentIndex << vice() != clip.parent().get_service()) {
"transition index" << transitionIndex; UNDOLOG << "Fixing transition at clip index" << currentIndex
transitionClip = clip.cut(transitionClip.get_in(), transitionCli << "transition index" << transitionIndex;
p.get_out()); transitionClip = clip.cut(transitionClip.get_in(), transitio
transition.set_track(transitionClip, transitionIndex); nClip.get_out());
transition.set_track(transitionClip, transitionIndex);
}
} }
} }
transitionIndex++; transitionIndex++;
} }
} }
 End of changes. 1 change blocks. 
8 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)