summaryrefslogtreecommitdiff
path: root/src/lib/player.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-10 15:04:57 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-10 15:04:57 +0100
commit611f2241c6732c2c38d87e129e51cf9d8d7a08b8 (patch)
tree0c00420654d322856aecb5c6bbaeb483b3db7211 /src/lib/player.h
parentade36b7e120838840d0f645763b8e0814eaf9ee4 (diff)
Basic return of subtitles.
Diffstat (limited to 'src/lib/player.h')
-rw-r--r--src/lib/player.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/player.h b/src/lib/player.h
index 15fa4dbd6..f96d5ac69 100644
--- a/src/lib/player.h
+++ b/src/lib/player.h
@@ -35,6 +35,7 @@ class AudioContent;
class Piece;
class Image;
class Resampler;
+class TimedSubtitle;
/** @class Player
* @brief A class which can `play' a Playlist; emitting its audio and video.
@@ -77,6 +78,7 @@ private:
void process_video (boost::weak_ptr<Piece>, boost::shared_ptr<const Image>, bool, VideoContent::Frame);
void process_audio (boost::weak_ptr<Piece>, boost::shared_ptr<const AudioBuffers>, AudioContent::Frame);
+ void process_subtitle (boost::weak_ptr<Piece>, boost::shared_ptr<TimedSubtitle>);
void setup_pieces ();
void playlist_changed ();
void content_changed (boost::weak_ptr<Content>, int);
@@ -107,6 +109,9 @@ private:
libdcp::Size _video_container_size;
boost::shared_ptr<Image> _black_frame;
std::map<boost::shared_ptr<AudioContent>, boost::shared_ptr<Resampler> > _resamplers;
+
+ boost::shared_ptr<TimedSubtitle> _subtitle;
+ Time _subtitle_offset;
};
#endif