Fix erroneous reports of unresolved assets when checking OV/VF pairs.
[libdcp.git] / src / picture_asset.cc
index a0a7d7d7dbc5f1211be9a926a7c887fcd34a43f5..68af0896b245a77101fa10a6eb80fcf1e049eb0b 100644 (file)
@@ -55,6 +55,7 @@ using std::make_pair;
 using boost::shared_ptr;
 using namespace dcp;
 
+/** Load a PictureAsset from a file */
 PictureAsset::PictureAsset (boost::filesystem::path file)
        : Asset (file)
        , _intrinsic_duration (0)
@@ -62,8 +63,10 @@ PictureAsset::PictureAsset (boost::filesystem::path file)
 
 }
 
-PictureAsset::PictureAsset (Fraction edit_rate)
-       : _edit_rate (edit_rate)
+/** Create a new PictureAsset with a given edit rate and standard */
+PictureAsset::PictureAsset (Fraction edit_rate, Standard standard)
+       : MXF (standard)
+       , _edit_rate (edit_rate)
        , _intrinsic_duration (0)
 {
 
@@ -197,7 +200,7 @@ PictureAsset::frame_buffer_equals (
 }
 
 string
-PictureAsset::pkl_type (Standard standard) const
+PictureAsset::static_pkl_type (Standard standard)
 {
        switch (standard) {
        case INTEROP:
@@ -208,3 +211,9 @@ PictureAsset::pkl_type (Standard standard) const
                DCP_ASSERT (false);
        }
 }
+
+string
+PictureAsset::pkl_type (Standard standard) const
+{
+       return static_pkl_type (standard);
+}