]> git.sesse.net Git - mlt/commitdiff
Fix serializing an xml producer by itself.
authorDan Dennedy <dan@dennedy.org>
Wed, 16 Oct 2013 05:24:02 +0000 (22:24 -0700)
committerDan Dennedy <dan@dennedy.org>
Wed, 16 Oct 2013 05:24:02 +0000 (22:24 -0700)
Applications should use the xml producer's _original_type and
_original_resource properties and coerce it to a playlist or tractor to
serialize the entire graph of nodes.

src/modules/xml/consumer_xml.c

index 58c22ed6cae27346a0ee197f5e1e6b06a51aed8c..dde68f0d3a4aeecc018ecb6ca0093df06d8aae0e 100644 (file)
@@ -665,6 +665,8 @@ static void serialise_service( serialise_context context, mlt_service service, x
                        else
                        {
                                serialise_producer( context, service, node );
+                               if ( mlt_properties_get( properties, "xml" ) != NULL )
+                                       break;
                        }
                }