summaryrefslogtreecommitdiff
path: root/src/atmos_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-21 01:57:06 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-21 01:57:06 +0100
commit76e3325a16cdf6d7220a61e2b5cfdb9c804cc32c (patch)
tree8c1b5e5dc2cec265469a0d8018b6d7396b089432 /src/atmos_asset.cc
parent6c3db78c3d20ef064fa2a0ef38e65ca1ae69adb3 (diff)
Use enum class for the things in types.h
Diffstat (limited to 'src/atmos_asset.cc')
-rw-r--r--src/atmos_asset.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/atmos_asset.cc b/src/atmos_asset.cc
index 2145d8f8..4b13ab4d 100644
--- a/src/atmos_asset.cc
+++ b/src/atmos_asset.cc
@@ -39,10 +39,11 @@
using std::string;
using std::shared_ptr;
+using std::make_shared;
using namespace dcp;
AtmosAsset::AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_count, int max_object_count, int atmos_version)
- : MXF (SMPTE)
+ : MXF (Standard::SMPTE)
, _edit_rate (edit_rate)
, _intrinsic_duration (0)
, _first_frame (first_frame)
@@ -56,7 +57,7 @@ AtmosAsset::AtmosAsset (Fraction edit_rate, int first_frame, int max_channel_cou
AtmosAsset::AtmosAsset (boost::filesystem::path file)
: Asset (file)
- , MXF (SMPTE)
+ , MXF (Standard::SMPTE)
{
ASDCP::ATMOS::MXFReader reader;
Kumu::Result_t r = reader.OpenRead (file.string().c_str());
@@ -98,7 +99,7 @@ AtmosAsset::static_pkl_type (Standard)
shared_ptr<AtmosAssetReader>
AtmosAsset::start_read () const
{
- return shared_ptr<AtmosAssetReader> (new AtmosAssetReader (this, key(), SMPTE));
+ return make_shared<AtmosAssetReader>(this, key(), Standard::SMPTE);
}
shared_ptr<AtmosAssetWriter>