Commit 5d6e7e81 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Ensure we use correct subplaylist producer when replacing a clip in timeline (eg. when proxying)

parent 37ddf5ed
......@@ -4423,6 +4423,7 @@ void TimelineModel::requestClipReload(int clipId)
int old_trackId = getClipTrackId(clipId);
int oldPos = getClipPosition(clipId);
int oldOut = getClipIn(clipId) + getClipPlaytime(clipId);
int currentSubplaylist = m_allClips[clipId]->getSubPlaylistIndex();
int maxDuration = m_allClips[clipId]->getMaxDuration();
bool hasPitch = false;
double speed = m_allClips[clipId]->getSpeed();
......@@ -4438,7 +4439,7 @@ void TimelineModel::requestClipReload(int clipId)
getTrackById(old_trackId)->requestClipDeletion(clipId, refreshView, true, local_undo, local_redo, false, false);
}
if (old_trackId != -1) {
m_allClips[clipId]->refreshProducerFromBin(old_trackId, state, audioStream, 0, hasPitch);
m_allClips[clipId]->refreshProducerFromBin(old_trackId, state, audioStream, 0, hasPitch, currentSubplaylist == 1);
getTrackById(old_trackId)->requestClipInsertion(clipId, oldPos, refreshView, true, local_undo, local_redo);
if (maxDuration != m_allClips[clipId]->getMaxDuration()) {
QModelIndex ix = makeClipIndexFromID(clipId);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment