From 1e0f726e313638f7748e72545d0038cfcffde229 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 6 Dec 2012 20:33:12 +0000 Subject: [PATCH] Clarify log levels a touch and add a debug message. --- src/lib/ffmpeg_decoder.cc | 5 +++++ 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); -- 2.30.2