Fix audio analysis; make sure we don't decode video and let it pile up unwanted.
[dcpomatic.git] / src / lib / analyse_audio_job.cc
index 60b10e7b6e05ba69dc418894fa10b4ca8ef7781e..74c0125f3f6c2059d8af58820e9789eb79d1c584 100644 (file)
@@ -60,6 +60,7 @@ AnalyseAudioJob::run ()
        shared_ptr<Playlist> playlist (new Playlist);
        playlist->add (content);
        shared_ptr<Player> player (new Player (_film, playlist));
+       player->set_ignore_video ();
        
        int64_t const len = _film->length().frames (_film->audio_frame_rate());
        _samples_per_point = max (int64_t (1), len / _num_points);