From 0d760a4c6cc1b785bbcfab510b2edf0e4c25fa3a Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 31 Aug 2011 21:47:52 -0700 Subject: [PATCH] Add MLT version to serialized XML. --- src/modules/xml/consumer_xml.c | 3 +++ src/modules/xml/mlt-xml.dtd | 1 + 2 files changed, 4 insertions(+) diff --git a/src/modules/xml/consumer_xml.c b/src/modules/xml/consumer_xml.c index a9404dc1..f744fcb9 100644 --- a/src/modules/xml/consumer_xml.c +++ b/src/modules/xml/consumer_xml.c @@ -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 ) { diff --git a/src/modules/xml/mlt-xml.dtd b/src/modules/xml/mlt-xml.dtd index 937ff47c..f2bbfc20 100644 --- a/src/modules/xml/mlt-xml.dtd +++ b/src/modules/xml/mlt-xml.dtd @@ -5,6 +5,7 @@