summaryrefslogtreecommitdiff
path: root/src/lib/matcher.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-21 13:20:51 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-21 13:20:51 +0100
commit5a57b5631518ce9711e6b44a65a0bb87aa434561 (patch)
tree2db1403b5b3a30ae5b15cfcf23ae34fdef380de4 /src/lib/matcher.h
parent5f0f0de782100a5cb558f30c7768c8af0c19bcb7 (diff)
parentdc6713f19bb9084aac18eabe399b14ca1ac26df9 (diff)
Merge branch 'sync-fixes' into staging
Diffstat (limited to 'src/lib/matcher.h')
-rw-r--r--src/lib/matcher.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/matcher.h b/src/lib/matcher.h
index 21e42f53d..61fd81436 100644
--- a/src/lib/matcher.h
+++ b/src/lib/matcher.h
@@ -29,7 +29,7 @@ public:
void process_end ();
private:
- void fix_start (double);
+ void fix_start ();
void match (double);
void repeat_last_video ();
@@ -41,6 +41,20 @@ private:
boost::optional<libdcp::Size> _size;
boost::optional<int> _channels;
+ struct VideoRecord {
+ VideoRecord (boost::shared_ptr<const Image> i, bool s, boost::shared_ptr<Subtitle> u, double t)
+ : image (i)
+ , same (s)
+ , subtitle (u)
+ , time (t)
+ {}
+
+ boost::shared_ptr<const Image> image;
+ bool same;
+ boost::shared_ptr<Subtitle> subtitle;
+ double time;
+ };
+
struct AudioRecord {
AudioRecord (boost::shared_ptr<const AudioBuffers> a, double t)
: audio (a)
@@ -51,6 +65,7 @@ private:
double time;
};
+ std::list<VideoRecord> _pending_video;
std::list<AudioRecord> _pending_audio;
boost::optional<double> _first_input;