Add in a language team.
[dcpomatic.git] / src / lib / ffmpeg_examiner.h
index 6e218512917813a5fe91ddbb7501c1b2ed3345a9..f64ea8d799dd51af807eb6cfbb29aee374cb5d95 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -86,6 +86,20 @@ private:
        Frame _video_length;
        bool _need_video_length;
 
-       typedef std::map<boost::shared_ptr<FFmpegSubtitleStream>, boost::optional<ContentTime> > LastSubtitleMap;
+       struct SubtitleStart
+       {
+               SubtitleStart (std::string id_, bool image_, ContentTime time_)
+                       : id (id_)
+                       , image (image_)
+                       , time (time_)
+               {}
+
+               std::string id;
+               /** true if it's an image subtitle, false for text */
+               bool image;
+               ContentTime time;
+       };
+
+       typedef std::map<boost::shared_ptr<FFmpegSubtitleStream>, boost::optional<SubtitleStart> > LastSubtitleMap;
        LastSubtitleMap _last_subtitle_start;
 };