Fix incorrect composite transitions after insert/remove track

CCBUG: 362253
parent 147858b7
......@@ -805,10 +805,11 @@ void Timeline::switchTrackAudio(int ix, bool mute)
int Timeline::getLowestVideoTrack()
{
for (int i = 1; i < m_tracks.count(); ++i) {
if (track(i)->type == VideoTrack) {
for (int i = 1; i < m_tractor->count(); ++i) {
QScopedPointer<Mlt::Producer> track(m_tractor->track(i));
Mlt::Playlist playlist(*track);
if (playlist.get_int("kdenlive:audio_track") != 1)
return i;
}
}
return -1;
}
......
......@@ -157,7 +157,7 @@ public:
void updateHeaders();
/** @brief Returns true if position is on the last clip */
bool isLastClip(ItemInfo info);
/** @brief find lowest video track in timeline. */
/** @brief find lowest video track in timeline. */
int getLowestVideoTrack();
protected:
......
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