diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-21 00:47:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-21 00:47:16 +0000 |
| commit | f02d4c995a312e7ccf2eac7a2cb71d8e68d77189 (patch) | |
| tree | 6bd39b4b31b9389f2e26a197a5cd2a31853444b0 /src/lib | |
| parent | 41e25589706c23c6766c580f93c569a896f1ed77 (diff) | |
Still more decode logging.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/audio_decoder.cc | 3 | ||||
| -rw-r--r-- | src/lib/subtitle_decoder.cc | 3 | ||||
| -rw-r--r-- | src/lib/video_decoder.cc | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index f26c676b2..fd0835596 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -22,6 +22,8 @@ #include "audio_buffers.h" #include "audio_decoder_stream.h" #include "audio_content.h" +#include "log.h" +#include "compose.hpp" #include <boost/foreach.hpp> #include <iostream> @@ -89,6 +91,7 @@ AudioDecoder::flush () void AudioDecoder::seek (ContentTime t, bool accurate) { + _log->log (String::compose ("AD seek to %1", to_string(t)), LogEntry::TYPE_DEBUG_DECODE); for (map<AudioStreamPtr, shared_ptr<AudioDecoderStream> >::const_iterator i = _streams.begin(); i != _streams.end(); ++i) { i->second->seek (t, accurate); } diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc index a7cf8110f..9ec030b38 100644 --- a/src/lib/subtitle_decoder.cc +++ b/src/lib/subtitle_decoder.cc @@ -164,8 +164,9 @@ SubtitleDecoder::get_image (ContentTimePeriod period, bool starting, bool accura } void -SubtitleDecoder::seek (ContentTime, bool) +SubtitleDecoder::seek (ContentTime t, bool) { + _log->log (String::compose ("SD seek to %1", to_string(t)), LogEntry::TYPE_DEBUG_DECODE); reset (); } diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index d04c80bc6..383af102d 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -385,6 +385,7 @@ VideoDecoder::give (shared_ptr<const ImageProxy> image, Frame frame) void VideoDecoder::seek (ContentTime s, bool accurate) { + _log->log (String::compose ("VD seek to %1", to_string(s)), LogEntry::TYPE_DEBUG_DECODE); _decoded.clear (); _last_seek_time = s; _last_seek_accurate = accurate; |
