X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_decoder.cc;h=e3c06378b8eabd86216d8f08394e1db57152fab6;hb=27867be66579551018c926ed3339624e463c1b08;hp=20a9f32fee031ddd99fc03f19ab1d5182614e6f7;hpb=5e4f001bf32e3cdf65efa34803d70e6c1c00c66b;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_decoder.cc b/src/lib/dcp_subtitle_decoder.cc index 20a9f32fe..e3c06378b 100644 --- a/src/lib/dcp_subtitle_decoder.cc +++ b/src/lib/dcp_subtitle_decoder.cc @@ -17,9 +17,9 @@ */ -#include #include "dcp_subtitle_decoder.h" #include "dcp_subtitle_content.h" +#include using std::list; using std::cout; @@ -28,8 +28,8 @@ using boost::shared_ptr; DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr content) : SubtitleDecoder (content) { - dcp::SubtitleContent c (content->path (0), false); - _subtitles = c.subtitles (); + shared_ptr c (load (content->path (0))); + _subtitles = c->subtitles (); _next = _subtitles.begin (); }