Add support for dvdauthor 0.7
authorBen Hutchings <ben@decadent.org.uk>
Thu, 3 Mar 2011 03:19:28 +0000 (03:19 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 3 Mar 2011 03:42:20 +0000 (03:42 +0000)
dvdauthor 0.7 requires us to specify the video standard explicitly.

ChangeLog
generate_dvd.cpp

index 3ff2d52..f627f95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 videolink (1.2.11) UNRELEASED; urgency=low
 
   * Add support for XULRunner 2.0 (beta)
+  * Add support for dvdauthor 0.7
 
  -- Ben Hutchings <ben@decadent.org.uk>  Thu, 03 Mar 2011 02:35:49 +0000
 
index 8eb5871..371894d 100644 (file)
@@ -360,8 +360,9 @@ void dvd_generator::generate(const std::string & output_dir) const
        const bool have_real_menus =
            titleset_num * dvdauthor_anonymous_menus_max < menus_.size();
 
-       file << "  <" << outer_element_name << ">\n"
-            << "    <menus>\n";
+       file << "  <" << outer_element_name << ">\n" <<
+            "    <menus>\n"
+            "      <video format='" << frame_params_.common_name << "'/>\n";
 
        const unsigned menu_begin = titleset_num * dvdauthor_anonymous_menus_max;
        const unsigned menu_end =
@@ -606,6 +607,7 @@ void dvd_generator::generate(const std::string & output_dir) const
        {
            file <<
                "    <titles>\n"
+               "      <video format='" << frame_params_.common_name << "'/>\n"
                "      <pgc>\n";
 
            file << "        <pre>\n";