diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-02 14:19:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-02 14:19:21 +0100 |
| commit | 712f8144f1992364d79a80b2b586248423f7ac11 (patch) | |
| tree | 09a26e5ae303a3ae3e9cc44d0da0fbb3ae7c455a /src/lib/content_subtitle.h | |
| parent | bc9458cbe39a24d22c199c82efab524208dc347d (diff) | |
Rearrange Player subtitle handling a bit.
Diffstat (limited to 'src/lib/content_subtitle.h')
| -rw-r--r-- | src/lib/content_subtitle.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/content_subtitle.h b/src/lib/content_subtitle.h index 6a28c37bf..8868618ad 100644 --- a/src/lib/content_subtitle.h +++ b/src/lib/content_subtitle.h @@ -24,6 +24,7 @@ #include <dcp/subtitle_string.h> #include "dcpomatic_time.h" #include "rect.h" +#include "image_subtitle.h" class Image; @@ -37,8 +38,7 @@ class ContentImageSubtitle : public ContentSubtitle { public: ContentImageSubtitle (ContentTimePeriod p, boost::shared_ptr<Image> im, dcpomatic::Rect<double> r) - : image (im) - , rectangle (r) + : sub (im, r) , _period (p) {} @@ -46,8 +46,8 @@ public: return _period; } - boost::shared_ptr<Image> image; - dcpomatic::Rect<double> rectangle; + /* Our subtitle, with its rectangle unmodified by any offsets or scales that the content specifies */ + ImageSubtitle sub; private: ContentTimePeriod _period; |
