X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_content.cc;h=b28e91dd5cb30d74bf964ae827efa771bb378124;hb=29fe2d3a4c347e15b987f9e61e56d22a21d4678f;hp=83374fc3051759f815819cf8c71cb6bb0c57a672;hpb=640a1ef73e575fe891a420dec392dace8b1a0255;p=dcpomatic.git diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 83374fc30..b28e91dd5 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -62,8 +62,8 @@ DCPContent::DCPContent (shared_ptr film, boost::filesystem::path p) , _reference_audio (false) , _reference_subtitle (false) { - video.reset (new VideoContent (this, film)); - audio.reset (new AudioContent (this, film)); + video.reset (new VideoContent (this)); + audio.reset (new AudioContent (this)); read_directory (p); set_default_colour_conversion (); @@ -72,9 +72,9 @@ DCPContent::DCPContent (shared_ptr film, boost::filesystem::path p) DCPContent::DCPContent (shared_ptr film, cxml::ConstNodePtr node, int version) : Content (film, node) { - video = VideoContent::from_xml (this, film, node, version); - audio = AudioContent::from_xml (this, film, node); - subtitle = SubtitleContent::from_xml (this, film, node, version); + video = VideoContent::from_xml (this, node, version); + audio = AudioContent::from_xml (this, node); + subtitle = SubtitleContent::from_xml (this, node, version); audio->set_stream ( AudioStreamPtr ( @@ -138,7 +138,7 @@ DCPContent::examine (shared_ptr job) boost::mutex::scoped_lock lm (_mutex); _name = examiner->name (); if (examiner->has_subtitles ()) { - subtitle.reset (new SubtitleContent (this, film())); + subtitle.reset (new SubtitleContent (this)); } _encrypted = examiner->encrypted (); _kdm_valid = examiner->kdm_valid ();