summaryrefslogtreecommitdiff
path: root/src/lib/decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-21 15:16:18 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-21 15:16:18 +0100
commitcbd4450197a083bf58bda510e626f73ba583cb66 (patch)
tree2be308772512539570beab36beab02bde72d6d4b /src/lib/decoder.h
parent1013175d5f6adfa0e6a7442e4c9aebb893787748 (diff)
Basics of multiple captions per content so that DCPContent can
hold subs and closed captions.
Diffstat (limited to 'src/lib/decoder.h')
-rw-r--r--src/lib/decoder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/decoder.h b/src/lib/decoder.h
index c3b330cfb..d48df7517 100644
--- a/src/lib/decoder.h
+++ b/src/lib/decoder.h
@@ -45,7 +45,9 @@ public:
boost::shared_ptr<VideoDecoder> video;
boost::shared_ptr<AudioDecoder> audio;
- boost::shared_ptr<CaptionDecoder> caption;
+ std::list<boost::shared_ptr<CaptionDecoder> > caption;
+
+ boost::shared_ptr<CaptionDecoder> only_caption () const;
/** Do some decoding and perhaps emit video, audio or subtitle data.
* @return true if this decoder will emit no more data unless a seek() happens.