diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-16 17:45:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-18 01:10:32 +0100 |
| commit | c3c127e0bdb988696d16f47ea8080df3eff38420 (patch) | |
| tree | ecdff8d299152eef491f1946e6ccb4f6d9cf8e71 /src/reel_stereo_picture_asset.cc | |
| parent | 45ed3bf55175a8555123b320b366efb69b1ba629 (diff) | |
Add can_be_read() to ReelFileAsset and subclasses.
Diffstat (limited to 'src/reel_stereo_picture_asset.cc')
| -rw-r--r-- | src/reel_stereo_picture_asset.cc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/reel_stereo_picture_asset.cc b/src/reel_stereo_picture_asset.cc index 2ee452d9..53abb8d6 100644 --- a/src/reel_stereo_picture_asset.cc +++ b/src/reel_stereo_picture_asset.cc @@ -42,10 +42,11 @@ #include <libcxml/cxml.h> -using std::string; -using std::pair; +using std::dynamic_pointer_cast; using std::make_pair; +using std::pair; using std::shared_ptr; +using std::string; using namespace dcp; @@ -82,3 +83,15 @@ ReelStereoPictureAsset::cpl_node_attribute (Standard standard) const DCP_ASSERT (false); } + + +bool +ReelStereoPictureAsset::can_be_read() const +{ + if (!ReelFileAsset::can_be_read()) { + return false; + } + + return asset()->can_be_read(); +} + |
