Ignore Language node in MainSound.
[libdcp.git] / src / asset_map.cc
index b77c4ac190b012e85b648471d54508d8a1f9b067..3af2d6f8df4cd4e1b5c3bf9f56ac3f766784560b 100644 (file)
@@ -1,3 +1,26 @@
+/*
+    Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+/** @file  src/asset_map.cc
+ *  @brief Classes used to parse a AssetMap.
+ */
+
 #include "asset_map.h"
 
 using namespace std;
@@ -26,7 +49,7 @@ Chunk::Chunk (xmlpp::Node const * node)
        : XMLNode (node)
 {
        path = string_node ("Path");
-       volume_index = int64_node ("VolumeIndex");
+       volume_index = optional_int64_node ("VolumeIndex");
        offset = optional_int64_node ("Offset");
        length = optional_int64_node ("Length");
 }