]> git.sesse.net Git - kdenlive/commitdiff
Improve compatibility with MLT's new profile (de)serialization.
authorDan Dennedy <dan@dennedy.org>
Thu, 14 Oct 2010 06:27:19 +0000 (06:27 +0000)
committerDan Dennedy <dan@dennedy.org>
Thu, 14 Oct 2010 06:27:19 +0000 (06:27 +0000)
A null profile prevents MLT from serializing profile information.
There was something strange happening when switching profiles where it
would apply the previous profile's frame rate to the new profile.

There is still a framerate-related bug when you close Kdenlive with a project
profile whose frame rate is different than the default, re-open Kdenlive,
and then use the default profile!

svn path=/trunk/kdenlive/; revision=4995

src/renderer.cpp

index 50ce0274689efea44be11f076ef4fdbdb6511b0b..8908c8df80aab38abf3d51bfd265dc2c4d54d81d 100644 (file)
@@ -964,7 +964,8 @@ int Render::setSceneList(QString playlist, int position)
 const QString Render::sceneList()
 {
     QString playlist;
-    Mlt::Consumer xmlConsumer(*m_mltProfile, "xml:kdenlive_playlist");
+    Mlt::Profile profile((mlt_profile) 0);
+    Mlt::Consumer xmlConsumer(profile, "xml:kdenlive_playlist");
     m_mltProducer->optimise();
     xmlConsumer.set("terminate_on_pause", 1);
     Mlt::Producer prod(m_mltProducer->get_producer());