summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/writer.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc
index 5bd32147a..94072e6e8 100644
--- a/src/lib/writer.cc
+++ b/src/lib/writer.cc
@@ -45,6 +45,9 @@ Writer::Writer (shared_ptr<Film> f)
, _finish (false)
, _last_written_frame (-1)
{
+ /* Remove any old DCP */
+ boost::filesystem::remove_all (_film->dir (_film->dcp_name ()));
+
check_existing_picture_mxf ();
/* Create our picture asset in a subdirectory, named according to those