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_mono_picture_asset.cc | |
| parent | 45ed3bf55175a8555123b320b366efb69b1ba629 (diff) | |
Add can_be_read() to ReelFileAsset and subclasses.
Diffstat (limited to 'src/reel_mono_picture_asset.cc')
| -rw-r--r-- | src/reel_mono_picture_asset.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/reel_mono_picture_asset.cc b/src/reel_mono_picture_asset.cc index 5dbf85d2..9cbeb7e1 100644 --- a/src/reel_mono_picture_asset.cc +++ b/src/reel_mono_picture_asset.cc @@ -42,8 +42,9 @@ #include <libcxml/cxml.h> -using std::string; +using std::dynamic_pointer_cast; using std::shared_ptr; +using std::string; using namespace dcp; @@ -66,3 +67,14 @@ ReelMonoPictureAsset::cpl_node_name() const { return "MainPicture"; } + + +bool +ReelMonoPictureAsset::can_be_read() const +{ + if (!ReelFileAsset::can_be_read()) { + return false; + } + + return asset()->can_be_read(); +} |
