Add some new channels to the enum.
[libdcp.git] / src / reel.cc
index 3bf249c9d79e534e2cbc4e44a2486bd6dbc84668..453a3163184d182ad0403153de9c96f225df5f88 100644 (file)
 #include "reel_closed_caption_asset.h"
 #include <libxml++/nodes/element.h>
 #include <boost/foreach.hpp>
+#include <stdint.h>
+
+/* Centos 6 does not have this */
+#ifndef INT64_MAX
+#define INT64_MAX 0x7fffffffffffffff
+#endif
 
 using std::string;
 using std::list;
@@ -113,7 +119,7 @@ void
 Reel::write_to_cpl (xmlpp::Element* node, Standard standard) const
 {
        xmlpp::Element* reel = node->add_child ("Reel");
-       reel->add_child("Id")->add_child_text ("urn:uuid:" + make_uuid());
+       reel->add_child("Id")->add_child_text("urn:uuid:" + _id);
        xmlpp::Element* asset_list = reel->add_child ("AssetList");
 
        if (_main_markers) {