From 878e19aabf2278828a3c9b518e0804b2cef0c01e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 20 Nov 2016 23:58:51 +0000 Subject: Some more decode logging. --- src/lib/subtitle_decoder.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/subtitle_decoder.cc') diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc index 9c6ac969d..a7cf8110f 100644 --- a/src/lib/subtitle_decoder.cc +++ b/src/lib/subtitle_decoder.cc @@ -21,6 +21,8 @@ #include "subtitle_decoder.h" #include "subtitle_content.h" #include "util.h" +#include "log.h" +#include "compose.hpp" #include #include #include @@ -38,10 +40,11 @@ using boost::function; SubtitleDecoder::SubtitleDecoder ( Decoder* parent, shared_ptr c, + shared_ptr log, function (ContentTimePeriod, bool)> image_during, function (ContentTimePeriod, bool)> text_during ) - : DecoderPart (parent) + : DecoderPart (parent, log) , _content (c) , _image_during (image_during) , _text_during (text_during) @@ -104,6 +107,7 @@ SubtitleDecoder::get (list const & subs, list 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) { + _log->log (String::compose ("SD suggests seek to %1", to_string (*missing)), LogEntry::TYPE_DEBUG_DECODE); maybe_seek (*missing, true); } -- cgit v1.2.3