Clarify one log message and add another.
authorCarl Hetherington <cth@carlh.net>
Mon, 14 Nov 2022 23:43:33 +0000 (00:43 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Nov 2022 23:47:36 +0000 (00:47 +0100)
src/lib/audio_analyser.cc
src/lib/ffmpeg_decoder.cc

index e4dfc6bdeeea6744adee49a3e07534f5b71c9d43..1556f921de634b27103ec2276d9013c9bd22d9cd 100644 (file)
@@ -136,7 +136,7 @@ AudioAnalyser::~AudioAnalyser ()
 void
 AudioAnalyser::analyse (shared_ptr<AudioBuffers> b, DCPTime time)
 {
-       LOG_DEBUG_AUDIO_ANALYSIS("Received %1 frames at %2", b->frames(), to_string(time));
+       LOG_DEBUG_AUDIO_ANALYSIS("AudioAnalyser received %1 frames at %2", b->frames(), to_string(time));
        DCPOMATIC_ASSERT (time >= _start);
        /* In bug #2364 we had a lot of frames arriving here (~47s worth) which
         * caused an OOM error on Windows.  Check for the number of frames being
index 27b7aa7b7514e4cdcc20d9c2c79c0dd87cf873a5..8b07658ca427bd5e794bb4716b0b1e7f8ffcba01 100644 (file)
@@ -190,6 +190,7 @@ FFmpegDecoder::pass ()
           Hence it makes sense to continue here in that case.
        */
        if (r < 0 && r != AVERROR_INVALIDDATA) {
+               LOG_DEBUG_PLAYER("FFpmegDecoder::pass flushes because av_read_frame returned %1", r);
                if (r != AVERROR_EOF) {
                        /* Maybe we should fail here, but for now we'll just finish off instead */
                        char buf[256];