From 9e025d3f85f9d6d855b3d5e6c90bca0eac3a3d49 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 16 Oct 2015 14:38:44 +0100 Subject: 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. --- src/lib/subrip_decoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/subrip_decoder.h') diff --git a/src/lib/subrip_decoder.h b/src/lib/subrip_decoder.h index db8374c5c..b899b5dd8 100644 --- a/src/lib/subrip_decoder.h +++ b/src/lib/subrip_decoder.h @@ -32,7 +32,7 @@ public: protected: void seek (ContentTime time, bool accurate); - bool pass (); + bool pass (PassReason); private: std::list image_subtitles_during (ContentTimePeriod, bool starting) const; -- cgit v1.2.3