X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=generate_dvd.cpp;h=eeadc489bc1b75a92bae82a1dbc8cb3c2074f8ec;hp=6144ef5ba0b78e06a2d5568154f03ca1eeaa0e7d;hb=c13714f6498df33e02635421354f5fb88a60eb3d;hpb=d8d5c01a14ab3808a9c823996eb1b72d5c624807 diff --git a/generate_dvd.cpp b/generate_dvd.cpp index 6144ef5..eeadc48 100644 --- a/generate_dvd.cpp +++ b/generate_dvd.cpp @@ -8,6 +8,7 @@ #include "dvd.hpp" #include "generate_dvd.hpp" +#include "xml_utils.hpp" dvd_contents::menu::menu() : vob_temp(new temp_file("webdvd-vob-")) @@ -193,8 +194,22 @@ void generate_dvd(const dvd_contents & contents, " \n" " \n" // Record calling location. - "
 g12 = g1; 
\n" - << contents.titles[title_num].vob_list << + "
 g12 = g1; 
\n"; + + for (vob_list::const_iterator it = contents.titles[title_num].begin(), + end = contents.titles[title_num].end(); + it != end; + ++it) + { + file << " chapters.empty()) + file << " chapters='" << xml_escape(it->chapters) << "'"; + if (!it->pause.empty()) + file << " pause='" << xml_escape(it->pause) << "'"; + file << "/>\n"; + } + + file << // If the menu location has not been changed during // the title, set the location to be the following // button in the menu. In any case, return to some