summaryrefslogtreecommitdiff
path: root/src/lib/dcp_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-16 14:38:44 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-16 14:38:44 +0100
commit9e025d3f85f9d6d855b3d5e6c90bca0eac3a3d49 (patch)
treeafc3e4a093a357bc7144a554c139e71b05fca9c5 /src/lib/dcp_decoder.h
parente7811b466eff496db7f63842df2fa4a4410afe14 (diff)
Avoid decoding other packets when looking for subs.
The "accumulation" of, for example, video data when we are looking for audio data is an *optimisation* to reduce the number of seeks. It should not be necessary for correctness (the output should be right even if we never kept anything except what we were looking for). Doing this accumulation is not always an optimisation; sometimes not doing it is better. Avoiding it when going back for subtitles is one of these cases.
Diffstat (limited to 'src/lib/dcp_decoder.h')
-rw-r--r--src/lib/dcp_decoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h
index 6fdbd946a..8ec80c2af 100644
--- a/src/lib/dcp_decoder.h
+++ b/src/lib/dcp_decoder.h
@@ -44,7 +44,7 @@ public:
private:
friend struct dcp_subtitle_within_dcp_test;
- bool pass ();
+ bool pass (PassReason);
void seek (ContentTime t, bool accurate);
std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;