summaryrefslogtreecommitdiff
path: root/src/lib/film.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-16 10:46:53 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-16 10:46:53 +0100
commitb85420b326b74c7c8125bf599993d71460ad881e (patch)
treec4da8ccf3b3234df7a577452e6b7718788d67f78 /src/lib/film.cc
parent4e6f15f602c605804f95c6b06af9bf79eaf2dde1 (diff)
Set up OV/VF in name according to whether DCP content has been referenced.
Diffstat (limited to 'src/lib/film.cc')
-rw-r--r--src/lib/film.cc15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index c89d96584..6514efde8 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -48,6 +48,7 @@
#include "video_content.h"
#include "subtitle_content.h"
#include "ffmpeg_content.h"
+#include "dcp_content.h"
#include <libcxml/cxml.h>
#include <dcp/cpl.h>
#include <dcp/certificate_chain.h>
@@ -674,8 +675,18 @@ Film::isdcf_name (bool if_created_now) const
d << "-3D";
}
- if (!dm.package_type.empty ()) {
- d << "_" << dm.package_type;
+ bool vf = false;
+ BOOST_FOREACH (shared_ptr<Content> i, content ()) {
+ shared_ptr<const DCPContent> dc = dynamic_pointer_cast<const DCPContent> (i);
+ if (dc && (dc->reference_video() || dc->reference_audio() || dc->reference_subtitle())) {
+ vf = true;
+ }
+ }
+
+ if (vf) {
+ d << "_VF";
+ } else {
+ d << "_OV";
}
return d.str ();