]> git.sesse.net Git - mlt/commitdiff
Add MLT version to serialized XML.
authorDan Dennedy <dan@dennedy.org>
Thu, 1 Sep 2011 04:47:52 +0000 (21:47 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 1 Sep 2011 04:47:52 +0000 (21:47 -0700)
src/modules/xml/consumer_xml.c
src/modules/xml/mlt-xml.dtd

index a9404dc1692d14c43082369858ab9d9be8029b37..f744fcb91cf099530f6a3971679f66f213b97d70 100644 (file)
@@ -652,6 +652,9 @@ xmlDocPtr xml_make_doc( mlt_consumer consumer, mlt_service service )
        // Indicate the numeric locale
        xmlNewProp( root, _x("LC_NUMERIC"), _x( setlocale( LC_NUMERIC, NULL ) ) );
 
+       // Indicate the version
+       xmlNewProp( root, _x("version"), _x( mlt_version_get_string() ) );
+
        // If we have root, then deal with it now
        if ( mlt_properties_get( properties, "root" ) != NULL )
        {
index 937ff47c4fef4dd130ab232c1683312443ff729b..f2bbfc20cbadec2c41611fe1f79809041fd7f481 100644 (file)
@@ -5,6 +5,7 @@
 <!ELEMENT mlt (profile | producer | playlist | tractor | multitrack)+ >
 <!ATTLIST mlt
     LC_NUMERIC CDATA    #IMPLIED
+    version    CDATA    #IMPLIED
     root       CDATA    #IMPLIED
     profile    CDATA    #IMPLIED
     title      CDATA    #IMPLIED