summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-11-20 23:58:51 +0000
committerCarl Hetherington <cth@carlh.net>2016-11-20 23:58:51 +0000
commit878e19aabf2278828a3c9b518e0804b2cef0c01e (patch)
tree1929355377edc46d25e6f9635d259ae7092ac3ef /src/lib/subtitle_decoder.cc
parent4337694dfd488e88f56b63898ad35ce8ce9bb3c3 (diff)
Some more decode logging.
Diffstat (limited to 'src/lib/subtitle_decoder.cc')
-rw-r--r--src/lib/subtitle_decoder.cc6
1 files changed, 5 insertions, 1 deletions
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 <sub/subtitle.h>
#include <boost/shared_ptr.hpp>
#include <boost/foreach.hpp>
@@ -38,10 +40,11 @@ using boost::function;
SubtitleDecoder::SubtitleDecoder (
Decoder* parent,
shared_ptr<const SubtitleContent> c,
+ shared_ptr<Log> log,
function<list<ContentTimePeriod> (ContentTimePeriod, bool)> image_during,
function<list<ContentTimePeriod> (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<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) {
+ _log->log (String::compose ("SD suggests seek to %1", to_string (*missing)), LogEntry::TYPE_DEBUG_DECODE);
maybe_seek (*missing, true);
}