Use an enum instead of a bool in PictureAsset::start_write().
[libdcp.git] / src / stereo_picture_asset.cc
index 7e3f6f63326bad0a264e25501f8f32ac32badf85..cf07c6be6eaed472972177eb8da8a4d6ce5a3b5f 100644 (file)
@@ -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));
 }