From 8e43142645252daeeaccbad7b9f3ed746c4b2382 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 28 Jun 2024 23:12:42 +0200 Subject: {,Interop,SMPTE}SubtitleAsset -> {,Interop,SMPTE}TextAsset. --- examples/read_dcp.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'examples') 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(i)) { std::cout << "Sound\n"; - } else if (std::dynamic_pointer_cast(i)) { - std::cout << "Subtitle\n"; + } else if (text = std::dynamic_pointer_cast(i)) { + if (text->type() == dcp::TextType::SUBTITLE) { + std::cout << "Subtitle\n"; + } else { + std::cout << "Caption\n"; + } } else if (std::dynamic_pointer_cast(i)) { std::cout << "CPL\n"; } -- cgit v1.2.3