Clarify log levels a touch and add a debug message.
authorCarl Hetherington <cth@carlh.net>
Thu, 6 Dec 2012 20:33:12 +0000 (20:33 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 6 Dec 2012 20:33:12 +0000 (20:33 +0000)
src/lib/ffmpeg_decoder.cc
src/lib/log.h

index 5f7e0d1c7b1bf6ffb007abbe3814d2e833adf106..49e03b1cebe6c15e12614603ed59340a72f6f058 100644 (file)
@@ -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;
                        }
index 298b425cd85e66aa23c11524e89626761592d5e6..c5241ebcf9607d38055cbd5cfe9b96be01bf7c70 100644 (file)
@@ -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);