From: Carl Hetherington Date: Mon, 21 Nov 2016 00:47:16 +0000 (+0000) Subject: Still more decode logging. X-Git-Tag: v2.10.3-test~20 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=f02d4c995a312e7ccf2eac7a2cb71d8e68d77189 Still more decode logging. --- 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 #include @@ -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 >::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 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;