summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_subtitle_stream.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-20 22:08:11 +0000
committerCarl Hetherington <cth@carlh.net>2016-11-20 22:08:11 +0000
commit4337694dfd488e88f56b63898ad35ce8ce9bb3c3 (patch)
tree8bba36173e1781eb18a81081e1ae27de4d4962ff /src/lib/ffmpeg_subtitle_stream.h
parent31724651675fc01a33ffa0818d4397858493dd56 (diff)
Fix subtitles (seen in DVB) which have a specified `to' time but
then are terminated earlier than that by a num_rects=0 subtitle.
Diffstat (limited to 'src/lib/ffmpeg_subtitle_stream.h')
-rw-r--r--src/lib/ffmpeg_subtitle_stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_subtitle_stream.h b/src/lib/ffmpeg_subtitle_stream.h
index 6d4853b8d..33247558f 100644
--- a/src/lib/ffmpeg_subtitle_stream.h
+++ b/src/lib/ffmpeg_subtitle_stream.h
@@ -36,6 +36,7 @@ public:
void add_image_subtitle (std::string id, ContentTimePeriod period);
void add_text_subtitle (std::string id, ContentTimePeriod period);
+ void set_subtitle_to (std::string id, ContentTime to);
std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod period, bool starting) const;
std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod period, bool starting) const;
ContentTime find_subtitle_to (std::string id) const;