diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-21 00:08:40 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-21 00:08:40 +0000 |
| commit | 41e25589706c23c6766c580f93c569a896f1ed77 (patch) | |
| tree | ae2e2c88d8913e54f0e0ea5fb2c53b6aaca54623 /src/lib/video_decoder.cc | |
| parent | 878e19aabf2278828a3c9b518e0804b2cef0c01e (diff) | |
Some more decode debug logging.
Diffstat (limited to 'src/lib/video_decoder.cc')
| -rw-r--r-- | src/lib/video_decoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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<ContentVideo>::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 (); } |
