summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-19 20:40:36 +0000
committerCarl Hetherington <cth@carlh.net>2016-11-19 20:40:36 +0000
commitf113b2aaca7a65f7b37e12a7d9f3f99e2d834e81 (patch)
tree6ea2ed1d480304a4aaf512e380cd013bbf42e86c /src/lib/subtitle_decoder.cc
parentfab7fa5a9ef1d069c7ca32e3669d0e37e896250c (diff)
Move position variables into the video/audio/subtitle decoder classes.
Diffstat (limited to 'src/lib/subtitle_decoder.cc')
-rw-r--r--src/lib/subtitle_decoder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc
index 020a0383c..9c6ac969d 100644
--- a/src/lib/subtitle_decoder.cc
+++ b/src/lib/subtitle_decoder.cc
@@ -41,7 +41,7 @@ SubtitleDecoder::SubtitleDecoder (
function<list<ContentTimePeriod> (ContentTimePeriod, bool)> image_during,
function<list<ContentTimePeriod> (ContentTimePeriod, bool)> text_during
)
- : _parent (parent)
+ : DecoderPart (parent)
, _content (c)
, _image_during (image_during)
, _text_during (text_during)
@@ -104,7 +104,7 @@ SubtitleDecoder::get (list<T> const & subs, list<ContentTimePeriod> const & sp,
/* Suggest to our parent decoder that it might want to seek if we haven't got what we're being asked for */
if (missing) {
- _parent->maybe_seek_subtitle (*missing, true);
+ maybe_seek (*missing, true);
}
/* Now enough pass() calls will either: