diff --git a/app/widget/timelinewidget/tool/import.cpp b/app/widget/timelinewidget/tool/import.cpp index 31a8be681..b7f47cf5b 100644 --- a/app/widget/timelinewidget/tool/import.cpp +++ b/app/widget/timelinewidget/tool/import.cpp @@ -194,11 +194,17 @@ void ImportTool::PlaceAt(const QMap > & void ImportTool::FootageToGhosts(rational ghost_start, const QMap > &sorted, const rational& dest_tb, const int& track_start) { for (auto it=sorted.cbegin(); it!=sorted.cend(); it++) { + ViewerOutput* footage = it.key(); + + if (footage == sequence()) { + // Prevent cyclical dependency + continue; + } + // Each stream is offset by one track per track "type", we keep track of them in this vector QVector track_offsets(Track::kCount); track_offsets.fill(track_start); - ViewerOutput* footage = it.key(); rational footage_duration; rational ghost_in;