http://www.kdenlive.org:80/mantis/view.php?id=912
(Fixes the crash but not the real cause for this bug)
svn path=/trunk/kdenlive/; revision=3548
QList<QGraphicsItem *> itemList = items();
//if (itemList.isEmpty()) return;
ClipItem *item;
- QString thumbBase = m_document->projectFolder().path() + "/thumbs/";
+ const QString thumbBase = m_document->projectFolder().path() + "/thumbs/";
for (int i = 0; i < itemList.count(); i++) {
if (itemList.at(i)->type() == AVWIDGET) {
item = static_cast <ClipItem *>(itemList.at(i));
Mlt::Service service(parentProd.get_service());
Mlt::Tractor tractor(service);
+ if (info.track > tractor.count() - 1) {
+ kDebug() << "ERROR TRYING TO INSERT CLIP ON TRACK " << info.track << ", at POS: " << info.startPos.frames(25);
+ return;
+ }
mlt_service_lock(service.get_service());
Mlt::Producer trackProducer(tractor.track(info.track));
Mlt::Playlist trackPlaylist((mlt_playlist) trackProducer.get_service());