Erroneous leftover _log in Decoder; use decoder audio channels count rather than...
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index b6cdce0e436e53715f28076a46e5d86d3a558885..034fefeb2cd37215e0bba8c9a3d757f999f0442e 100644 (file)
@@ -275,7 +275,7 @@ FFmpegDecoder::do_pass ()
                        /* frames of silence that we must push */
                        int const s = rint ((_first_audio.get() - _first_video.get()) * audio_sample_rate ());
                        
-                       _log->log (
+                       _film->log()->log (
                                String::compose (
                                        "First video at %1, first audio at %2, pushing %3 frames of silence for %4 channels (%5 bytes per sample)",
                                        _first_video.get(), _first_audio.get(), s, audio_channels(), bytes_per_audio_sample()