diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-03 23:18:36 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 23:18:36 +0200 |
| commit | 13c738a189e574b80c2b8eca9baa485264664dde (patch) | |
| tree | fd13d9de7bd06f48412654b2d0262f2b797d9c0a /examples | |
| parent | e2cf84445765a4e13446e33973405a78d3924134 (diff) | |
Fix up example.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/read_dcp.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/read_dcp.cc b/examples/read_dcp.cc index 8917b717..432c2f27 100644 --- a/examples/read_dcp.cc +++ b/examples/read_dcp.cc @@ -77,12 +77,8 @@ main () std::cout << "3D picture\n"; } else if (std::dynamic_pointer_cast<dcp::SoundAsset>(i)) { std::cout << "Sound\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::TextAsset>(i)) { + std::cout << "Subtitle/caption\n"; } else if (std::dynamic_pointer_cast<dcp::CPL>(i)) { std::cout << "CPL\n"; } |
