Fix deadlock.
[dcpomatic.git] / src / lib / ffmpeg_content.cc
index ad9096b92adadcb903312c34669989037c3724c7..a52b53b04099251b8f84a7d1e9446f869c7ffc31 100644 (file)
@@ -365,12 +365,10 @@ FFmpegContent::audio_analysis_path () const
           analyses for each stream.
        */
 
-       boost::filesystem::path p = film->audio_analysis_dir ();
-       string name = digest();
+       boost::filesystem::path p = AudioContent::audio_analysis_path ();
        if (audio_stream ()) {
-               name += "_" + audio_stream()->identifier ();
+               p = p.string() + "_" + audio_stream()->identifier ();
        }
-       p /= name;
        return p;
 }