From: Carl Hetherington Date: Thu, 6 Dec 2012 20:33:12 +0000 (+0000) Subject: Clarify log levels a touch and add a debug message. X-Git-Tag: v2.0.48~1487 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=1e0f726e313638f7748e72545d0038cfcffde229;p=dcpomatic.git Clarify log levels a touch and add a debug message. --- 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);