diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-06 20:33:12 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-06 20:33:12 +0000 |
| commit | 1e0f726e313638f7748e72545d0038cfcffde229 (patch) | |
| tree | 0e87e60a68014c16b5ca0af37dfc93cfb3ab3734 /src/lib | |
| parent | 7561918187d51eadcd59904a71c1eda30cc6ab31 (diff) | |
Clarify log levels a touch and add a debug message.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 5 | ||||
| -rw-r--r-- | src/lib/log.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 5f7e0d1c7..49e03b1ce 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -277,6 +277,11 @@ FFmpegDecoder::pass () double const source_pts_seconds = av_q2d (_format_context->streams[_packet.stream_index]->time_base) * av_frame_get_best_effort_timestamp(_frame); + _film->log()->log ( + String::compose ("Source video frame ready; source at %1, output at %2", source_pts_seconds, out_pts_seconds), + Log::DEBUG + ); + if (!_first_video) { _first_video = source_pts_seconds; } diff --git a/src/lib/log.h b/src/lib/log.h index 298b425cd..c5241ebcf 100644 --- a/src/lib/log.h +++ b/src/lib/log.h @@ -37,9 +37,10 @@ public: virtual ~Log () {} enum Level { - STANDARD = 0, + SILENT = 0, VERBOSE = 1, - TIMING = 2 + DEBUG = 2, + TIMING = 3 }; void log (std::string m, Level l = STANDARD); |
