summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-07 12:47:28 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-07 12:47:28 +0000
commitdc096ebf9c5b793756f680c269e5ac7411da6978 (patch)
treecce040e0744e43a8fafe2ba88bf8f7c2ddd2f725 /src/lib
parenta70021afdc1e1fa026d8274f1bd2c905a7ced384 (diff)
Remove old DCP before creating new one (#47).
Diffstat (limited to 'src/lib')
-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