From 22873931f874a87fcf6a0077eddbec0f97eb3423 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 1 Feb 2016 00:26:37 +0000 Subject: Subtitle "to" times used to be stored against their "from" times. Sadly an example shows that from times are not unique. This patch uses a hash of stuff from the first AVSubtitle as the key. --- src/lib/ffmpeg_content.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/ffmpeg_content.cc') diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index a317ec35f..ba799be72 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -75,7 +75,7 @@ FFmpegContent::FFmpegContent (shared_ptr film, cxml::ConstNodePtr no { list c = node->node_children ("SubtitleStream"); for (list::const_iterator i = c.begin(); i != c.end(); ++i) { - _subtitle_streams.push_back (shared_ptr (new FFmpegSubtitleStream (*i))); + _subtitle_streams.push_back (shared_ptr (new FFmpegSubtitleStream (*i, version))); if ((*i)->optional_number_child ("Selected")) { _subtitle_stream = _subtitle_streams.back (); } -- cgit v1.2.3