Still more decode logging.
authorCarl Hetherington <cth@carlh.net>
Mon, 21 Nov 2016 00:47:16 +0000 (00:47 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 21 Nov 2016 00:47:16 +0000 (00:47 +0000)
src/lib/audio_decoder.cc
src/lib/subtitle_decoder.cc
src/lib/video_decoder.cc

index f26c676b200038c54673871ef2b80c42ee8d8adb..fd0835596924c8d2e19abde7d742396740d9d71b 100644 (file)
@@ -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);
        }
index a7cf8110f5fc3bd56baa5eff95d62263f8d3f11e..9ec030b383e6f8442afb8c20c98c8a3576b19a7a 100644 (file)
@@ -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 ();
 }
 
index d04c80bc668891535da38e3aeaa7a1dd99ec2dc1..383af102d9965e230fa2595070e8086e47fc9061 100644 (file)
@@ -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;