More tests.
[libdcp.git] / src / stereo_picture_mxf.cc
index 980c6ad52e110f045ad762dc5f08ddba50e9ce0f..726b0feeea052365b33426ae2e40de5f43a5d328 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -45,6 +45,13 @@ StereoPictureMXF::StereoPictureMXF (boost::filesystem::path file)
        }
 
        read_picture_descriptor (desc);
+
+       ASDCP::WriterInfo info;
+       if (ASDCP_FAILURE (reader.FillWriterInfo (info))) {
+               boost::throw_exception (DCPReadError ("could not read video MXF information"));
+       }
+
+       read_writer_info (info);
 }
 
 StereoPictureMXF::StereoPictureMXF (Fraction edit_rate)
@@ -66,14 +73,8 @@ StereoPictureMXF::start_write (boost::filesystem::path file, Standard standard,
        return shared_ptr<StereoPictureMXFWriter> (new StereoPictureMXFWriter (this, file, standard, overwrite));
 }
 
-int
-StereoPictureMXF::edit_rate_factor () const
-{
-       return 2;
-}
-
 bool
-StereoPictureMXF::equals (shared_ptr<const Content> other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const
+StereoPictureMXF::equals (shared_ptr<const Asset> other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const
 {
        if (!MXF::equals (other, opt, note)) {
                return false;