diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-17 17:47:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-17 17:47:28 +0100 |
| commit | b6718fb437f242fd5127194d4c94e39d71c5e1ad (patch) | |
| tree | e6c0fb61d5252bb72969cdeaa752875bb06e14e3 /src/asset.cc | |
| parent | 1c22ef308a1d62b4c6935ede8233b1fea082b0ca (diff) | |
Some comments; fix up a UUID I think.
Diffstat (limited to 'src/asset.cc')
| -rw-r--r-- | src/asset.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/asset.cc b/src/asset.cc index 4e3bb0e1..e2624712 100644 --- a/src/asset.cc +++ b/src/asset.cc @@ -44,6 +44,9 @@ Asset::Asset (string p, int fps, int len) } +/** Write details of the asset to a PKL stream. + * @param s Stream. + */ void Asset::write_to_pkl (ostream& s) const { @@ -56,6 +59,9 @@ Asset::write_to_pkl (ostream& s) const << " </Asset>\n"; } +/** Write details of the asset to a ASSETMAP stream. + * @param s Stream. + */ void Asset::write_to_assetmap (ostream& s) const { @@ -72,6 +78,7 @@ Asset::write_to_assetmap (ostream& s) const << " </Asset>\n"; } +/** Fill in a ADSCP::WriteInfo struct */ void Asset::fill_writer_info (ASDCP::WriterInfo* writer_info) const { @@ -80,5 +87,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); } |
