]> git.sesse.net Git - mlt/commitdiff
Fix edit points when using auto-profile.
authorDan Dennedy <dan@dennedy.org>
Fri, 22 Oct 2010 04:11:21 +0000 (21:11 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 22 Oct 2010 04:11:21 +0000 (21:11 -0700)
src/melt/melt.c

index 041fcca5c9a0809de14ac8a39c8afd7f3c2d42cb..e98db46f1ae8796a68cfa358b87c3c1c1c1cd0cf 100644 (file)
@@ -560,8 +560,12 @@ query_all:
        {
                // Generate an automatic profile if needed.
                if ( ! profile->is_explicit )
+               {
                        guess_profile( melt, profile );
-
+                       mlt_producer_close( melt );
+                       melt = mlt_factory_producer( profile, "melt", &argv[ 1 ] );
+               }
+               
                // Reload the consumer with the fully qualified profile.
                // The producer or guess_profile could have changed the profile.
                load_consumer( &consumer, profile, argc, argv );