Fix compile warning

parent 78273e5f
Pipeline #15767 passed with stage
in 15 minutes and 8 seconds
......@@ -688,7 +688,7 @@ bool ProjectItemModel::requestAddBinClip(QString &id, const QDomElement &descrip
qDebug() << "/////////// added " << res;
if (res) {
int loadJob = pCore->jobManager()->startJob<LoadJob>({id}, -1, QString(), description, std::bind(readyCallBack, id));
int thumbJob = pCore->jobManager()->startJob<ThumbJob>({id}, loadJob, QString(), 0, true);
pCore->jobManager()->startJob<ThumbJob>({id}, loadJob, QString(), 0, true);
ClipType::ProducerType type = new_clip->clipType();
if (type == ClipType::AV || type == ClipType::Audio || type == ClipType::Playlist || type == ClipType::Unknown) {
pCore->jobManager()->startJob<AudioThumbJob>({id}, loadJob, QString());
......
......@@ -3517,7 +3517,7 @@ void TimelineModel::updateProfile(Mlt::Profile *profile)
for (int i = 0; i < m_tractor->count(); i++) {
std::shared_ptr<Mlt::Producer> tk(m_tractor->track(i));
tk->set_profile(*m_profile);
if (tk->type() == multitrack_type) {
if (tk->type() == tractor_type) {
Mlt::Tractor sub(*tk.get());
for (int j = 0; j < sub.count(); j++) {
std::shared_ptr<Mlt::Producer> subtk(sub.track(j));
......@@ -3525,6 +3525,7 @@ void TimelineModel::updateProfile(Mlt::Profile *profile)
}
}
}
m_blackClip->set_profile(*m_profile);
// Rebuild compositions since profile has changed
buildTrackCompositing(true);
}
......
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