- // MLT playlist
- mlt_profile prof = producer->get_profile();
- filePropertyMap["progressive"] = QString::number(prof->progressive);
- filePropertyMap["colorspace"] = QString::number(prof->colorspace);
- filePropertyMap["fps"] = QString::number(mlt_profile_fps(prof));
+ // MLT playlist, create producer with blank profile to get real profile info
+ // TODO: is there an easier way to get this info (original source clip profile) from MLT?
+ Mlt::Profile *original_profile = new Mlt::Profile();
+ Mlt::Producer *tmpProd = new Mlt::Producer(*original_profile, path.toUtf8().constData());
+ filePropertyMap["progressive"] = QString::number(original_profile->progressive());
+ filePropertyMap["colorspace"] = QString::number(original_profile->colorspace());
+ filePropertyMap["fps"] = QString::number(original_profile->fps());
+ delete tmpProd;
+ delete original_profile;