From: Carl Hetherington Date: Mon, 21 Nov 2016 00:08:40 +0000 (+0000) Subject: Some more decode debug logging. X-Git-Tag: v2.10.3-test~21 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=41e25589706c23c6766c580f93c569a896f1ed77 Some more decode debug logging. --- diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index 01d33cd68..d04c80bc6 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -77,10 +77,13 @@ VideoDecoder::get (Frame frame, bool accurate) _log->log (String::compose ("VD has request for %1", frame), LogEntry::TYPE_DEBUG_DECODE); /* See if we have frame, and suggest a seek if not */ + list::const_iterator i = _decoded.begin (); while (i != _decoded.end() && i->frame.index() != frame) { + _log->log (String::compose ("VD has stored %1 which is no good", i->frame.index()), LogEntry::TYPE_DEBUG_DECODE); ++i; } + if (i == _decoded.end()) { Frame seek_frame = frame; if (_content->video->frame_type() == VIDEO_FRAME_TYPE_3D_ALTERNATE) { @@ -170,6 +173,7 @@ VideoDecoder::get (Frame frame, bool accurate) for 3D), but nothing before that */ while (!_decoded.empty() && !dec.empty() && _decoded.front().frame.index() < dec.front().frame.index()) { + _log->log (String::compose ("VD discards %1", _decoded.front().frame.index()), LogEntry::TYPE_DEBUG_DECODE); _decoded.pop_front (); }