Finalisation of first phase of cut handling (unmanaged)
[melted] / src / modules / westley / consumer_westley.c
index ebe5fda..15bd525 100644 (file)
@@ -297,8 +297,11 @@ static void serialise_multitrack( serialise_context context, mlt_service service
 
                        char *id = westley_get_id( context, MLT_SERVICE( parent ), westley_existing );
                        xmlNewProp( track, "producer", id );
-                       xmlNewProp( track, "in", mlt_properties_get( properties, "in" ) );
-                       xmlNewProp( track, "out", mlt_properties_get( properties, "out" ) );
+                       if ( mlt_properties_get_int( properties, "cut" ) == 1 )
+                       {
+                               xmlNewProp( track, "in", mlt_properties_get( properties, "in" ) );
+                               xmlNewProp( track, "out", mlt_properties_get( properties, "out" ) );
+                       }
                        
                        hide = mlt_properties_get_int( context->hide_map, id );
                        if ( hide )