Doc fixes.
[libdcp.git] / src / asset.cc
index 4e3bb0e1ca1dc16edbeeb1ad33688630ba9e49f2..4a111a19d3fe20696469046ff013dc7531ddecf1 100644 (file)
 
 */
 
+/** @file  src/asset.cc
+ *  @brief Parent class for assets of DCPs.
+ */
+
 #include <iostream>
 #include <boost/filesystem.hpp>
 #include "AS_DCP.h"
@@ -29,16 +33,11 @@ using namespace std;
 using namespace boost;
 using namespace libdcp;
 
-/** Construct an Asset.
- *  @param p Pathname of MXF file.
- *  @param fps Frames per second.
- *  @param len Length in frames.
- */
-
-Asset::Asset (string p, int fps, int len)
-       : _mxf_path (p)
+Asset::Asset (string mxf_path, sigc::signal1<void, float>* progress, int fps, int length)
+       : _mxf_path (mxf_path)
+       , _progress (progress)
        , _fps (fps)
-       , _length (len)
+       , _length (length)
        , _uuid (make_uuid ())
 {
        
@@ -80,5 +79,7 @@ Asset::fill_writer_info (ASDCP::WriterInfo* writer_info) const
        writer_info->ProductName = Tags::instance()->product_name.c_str();
 
        writer_info->LabelSetType = ASDCP::LS_MXF_SMPTE;
-       Kumu::GenRandomUUID (writer_info->AssetUUID);
+       unsigned int c;
+       Kumu::hex2bin (_uuid.c_str(), writer_info->AssetUUID, Kumu::UUID_Length, &c);
+       assert (c == Kumu::UUID_Length);
 }