Various bits and pieces.
[dcpomatic.git] / src / wx / film_editor.cc
index 80d069ae5b799f8dc506d3f356351440b21926eb..0857b780a4d3f67525d1726f6054a2c19fb5eb0d 100644 (file)
@@ -1077,11 +1077,11 @@ FilmEditor::content_add_clicked (wxCommandEvent &)
                boost::filesystem::path p (wx_to_std (paths[i]));
 
                if (ImageMagickContent::valid_file (p)) {
-                       _film->add_content (shared_ptr<ImageMagickContent> (new ImageMagickContent (p)));
+                       _film->add_content (shared_ptr<ImageMagickContent> (new ImageMagickContent (_film, p)));
                } else if (SndfileContent::valid_file (p)) {
-                       _film->add_content (shared_ptr<SndfileContent> (new SndfileContent (p)));
+                       _film->add_content (shared_ptr<SndfileContent> (new SndfileContent (_film, p)));
                } else {
-                       _film->add_content (shared_ptr<FFmpegContent> (new FFmpegContent (p)));
+                       _film->add_content (shared_ptr<FFmpegContent> (new FFmpegContent (_film, p)));
                }
        }
 }