Add comment.
[libdcp.git] / src / dcp.cc
index 53d6b55dcc01ff3162a394318d0af322b5e66771..b6014941b823c03b3f37eb257e452a6473791342 100644 (file)
@@ -369,3 +369,16 @@ DCP::equals (DCP const & other, EqualityOptions opt) const
 
        return notes;
 }
+
+shared_ptr<const PictureAsset>
+DCP::picture_asset () const
+{
+       for (list<shared_ptr<Asset> >::const_iterator i = _assets.begin(); i != _assets.end(); ++i) {
+               shared_ptr<PictureAsset> p = dynamic_pointer_cast<PictureAsset> (*i);
+               if (p) {
+                       return p;
+               }
+       }
+
+       return shared_ptr<const PictureAsset> ();
+}