Fix includes.
[libdcp.git] / src / dcp.cc
index eb21b47d1375ef3635ea12dff8836f2be5c77f41..dac205478a6628cf32077cc39dd15286dedd9fea 100644 (file)
 #include "font_asset.h"
 #include "interop_subtitle_asset.h"
 #include "metadata.h"
-#include "mono_picture_asset.h"
-#include "picture_asset.h"
+#include "mono_j2k_picture_asset.h"
+#include "j2k_picture_asset.h"
 #include "pkl.h"
 #include "raw_convert.h"
 #include "reel_asset.h"
 #include "reel_subtitle_asset.h"
 #include "smpte_subtitle_asset.h"
 #include "sound_asset.h"
-#include "stereo_picture_asset.h"
+#include "stereo_j2k_picture_asset.h"
 #include "util.h"
 #include "verify.h"
 #include "warnings.h"
@@ -441,7 +441,7 @@ DCP::write_volindex (Standard standard) const
                DCP_ASSERT (false);
        }
 
-       root->add_child("Index")->add_child_text ("1");
+       cxml::add_text_child(root, "Index", "1");
        doc.write_to_file_formatted(dcp::filesystem::fix_long_path(p).string(), "UTF-8");
 }