summaryrefslogtreecommitdiff
path: root/src/lib/dcp_subtitle_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-04 01:13:13 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-04 01:13:13 +0000
commit8af00f5e0862c18e8c7b5f9ac0ea95a5d6ad696c (patch)
tree925d0673ec1c3319a8cc85374acb14a27d555c60 /src/lib/dcp_subtitle_decoder.cc
parenta5095486e606adfe36de635a48710cf98872c1c6 (diff)
Fix loading of SMPTE subtitles that are not MXF-wrapped.
Diffstat (limited to 'src/lib/dcp_subtitle_decoder.cc')
-rw-r--r--src/lib/dcp_subtitle_decoder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_subtitle_decoder.cc b/src/lib/dcp_subtitle_decoder.cc
index 2a9b52869..e3c06378b 100644
--- a/src/lib/dcp_subtitle_decoder.cc
+++ b/src/lib/dcp_subtitle_decoder.cc
@@ -28,8 +28,8 @@ using boost::shared_ptr;
DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr<const DCPSubtitleContent> content)
: SubtitleDecoder (content)
{
- dcp::InteropSubtitleContent c (content->path (0));
- _subtitles = c.subtitles ();
+ shared_ptr<dcp::SubtitleContent> c (load (content->path (0)));
+ _subtitles = c->subtitles ();
_next = _subtitles.begin ();
}