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 /src/stereo_picture_asset.cc | |
| parent | 870f02f07ee51ee478006260e2c3b683e591b0c9 (diff) | |
Use an enum instead of a bool in PictureAsset::start_write().
Diffstat (limited to 'src/stereo_picture_asset.cc')
| -rw-r--r-- | src/stereo_picture_asset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stereo_picture_asset.cc b/src/stereo_picture_asset.cc index 7e3f6f63..cf07c6be 100644 --- a/src/stereo_picture_asset.cc +++ b/src/stereo_picture_asset.cc @@ -87,9 +87,9 @@ StereoPictureAsset::StereoPictureAsset (Fraction edit_rate, Standard standard) shared_ptr<PictureAssetWriter> -StereoPictureAsset::start_write (boost::filesystem::path file, bool overwrite) +StereoPictureAsset::start_write(boost::filesystem::path file, Behaviour behaviour) { - return shared_ptr<StereoPictureAssetWriter> (new StereoPictureAssetWriter(this, file, overwrite)); + return shared_ptr<StereoPictureAssetWriter>(new StereoPictureAssetWriter(this, file, behaviour == Behaviour::OVERWRITE_EXISTING)); } |
