summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dcp.cc5
-rw-r--r--src/dcp_time.cc4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 4112d3b6..c0438ebd 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -319,6 +319,11 @@ DCP::DCP (string directory)
)
));
}
+
+ for (list<string>::iterator i = files.subtitles.begin(); i != files.subtitles.end(); ++i) {
+ string const l = i->substr (_directory.length ());
+ _assets.push_back (shared_ptr<SubtitleAsset> (new SubtitleAsset (_directory, l)));
+ }
}
diff --git a/src/dcp_time.cc b/src/dcp_time.cc
index 5b4241c4..f853143a 100644
--- a/src/dcp_time.cc
+++ b/src/dcp_time.cc
@@ -25,6 +25,10 @@ using namespace std;
using namespace libdcp;
Time::Time (int frame, int frames_per_second)
+ : h (0)
+ , m (0)
+ , s (0)
+ , t (0)
{
float sec_float = float (frame) / frames_per_second;
t = (int (sec_float * 1000) % 1000) / 4;