diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-03-17 14:11:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-20 16:41:02 +0100 |
| commit | 20e3e4c2a7a91e45740987a702f5d4c1ea2f9030 (patch) | |
| tree | dd8d9a08834170980ff34ea288ed0334a8b2d9b0 /test/test.cc | |
| parent | 870f02f07ee51ee478006260e2c3b683e591b0c9 (diff) | |
Use an enum instead of a bool in PictureAsset::start_write().
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index 76ed92f4..a8efa5c3 100644 --- a/test/test.cc +++ b/test/test.cc @@ -273,7 +273,7 @@ simple_picture (boost::filesystem::path path, string suffix, int frames, optiona if (key) { mp->set_key (*key); } - auto picture_writer = mp->start_write (path / dcp::String::compose("video%1.mxf", suffix), false); + auto picture_writer = mp->start_write(path / dcp::String::compose("video%1.mxf", suffix), dcp::PictureAsset::Behaviour::MAKE_NEW); dcp::Size const size (1998, 1080); auto image = make_shared<dcp::OpenJPEGImage>(size); @@ -516,7 +516,7 @@ black_picture_asset (boost::filesystem::path dir, int frames) auto asset = make_shared<dcp::MonoPictureAsset>(dcp::Fraction(24, 1), dcp::Standard::SMPTE); asset->set_metadata (dcp::MXFMetadata("libdcp", "libdcp", "1.6.4devel")); boost::filesystem::create_directories (dir); - auto writer = asset->start_write (dir / "pic.mxf", true); + auto writer = asset->start_write(dir / "pic.mxf", dcp::PictureAsset::Behaviour::MAKE_NEW); for (int i = 0; i < frames; ++i) { writer->write (frame.data(), frame.size()); } |
