diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-28 23:12:42 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:57:31 +0200 |
| commit | 8e43142645252daeeaccbad7b9f3ed746c4b2382 (patch) | |
| tree | 6c029caa9f0c961087ec6145da0bbbb8abf17146 /examples | |
| parent | 06c28c700f0a398a3289c4adfa83ceb2d0fc999d (diff) | |
{,Interop,SMPTE}SubtitleAsset -> {,Interop,SMPTE}TextAsset.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/read_dcp.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/read_dcp.cc b/examples/read_dcp.cc index fff02288..8917b717 100644 --- a/examples/read_dcp.cc +++ b/examples/read_dcp.cc @@ -32,7 +32,7 @@ #include "mono_j2k_picture_asset_reader.h" #include "stereo_j2k_picture_asset.h" #include "sound_asset.h" -#include "subtitle_asset.h" +#include "text_asset.h" #include "openjpeg_image.h" #include "colour_conversion.h" #include "rgb_xyz.h" @@ -77,8 +77,12 @@ main () std::cout << "3D picture\n"; } else if (std::dynamic_pointer_cast<dcp::SoundAsset>(i)) { std::cout << "Sound\n"; - } else if (std::dynamic_pointer_cast<dcp::SubtitleAsset>(i)) { - std::cout << "Subtitle\n"; + } else if (text = std::dynamic_pointer_cast<dcp::TextAsset>(i)) { + if (text->type() == dcp::TextType::SUBTITLE) { + std::cout << "Subtitle\n"; + } else { + std::cout << "Caption\n"; + } } else if (std::dynamic_pointer_cast<dcp::CPL>(i)) { std::cout << "CPL\n"; } |
