diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-19 13:09:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-19 13:15:34 +0200 |
| commit | 1fcc2d967b50d0a09a6f4cc2ab47d3d2206911a4 (patch) | |
| tree | 08b0a91de5aeaffd2069d8336d565eeaf2642f55 /src | |
| parent | cdb664d5be551715d9f55d00920ed92b4e2123e0 (diff) | |
I believe atmos_id is a unique identifier, so create it in the
same way that all the others are created.
Diffstat (limited to 'src')
| -rw-r--r-- | src/atmos_asset.cc | 4 | ||||
| -rw-r--r-- | src/atmos_asset.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/atmos_asset.cc b/src/atmos_asset.cc index 3924e43a..c4c88568 100644 --- a/src/atmos_asset.cc +++ b/src/atmos_asset.cc @@ -41,14 +41,14 @@ using std::string; using boost::shared_ptr; using namespace dcp; -AtmosAsset::AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_count, int max_object_count, string atmos_id, int atmos_version) +AtmosAsset::AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_count, int max_object_count, int atmos_version) : MXF (SMPTE) , _edit_rate (edit_rate) , _intrinsic_duration (0) , _first_frame (first_frame) , _max_channel_count (max_channel_count) , _max_object_count (max_object_count) - , _atmos_id (atmos_id) + , _atmos_id (make_uuid()) , _atmos_version (atmos_version) { diff --git a/src/atmos_asset.h b/src/atmos_asset.h index 61f94055..f7794a2a 100644 --- a/src/atmos_asset.h +++ b/src/atmos_asset.h @@ -45,7 +45,7 @@ class AtmosAssetWriter; class AtmosAsset : public Asset, public MXF { public: - AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_count, int max_object_count, std::string atmos_id, int atmos_version); + AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_count, int max_object_count, int atmos_version); explicit AtmosAsset (boost::filesystem::path file); boost::shared_ptr<AtmosAssetWriter> start_write (boost::filesystem::path file); |
