From ba5915461f1622715a69fa25579e5e27e64fb079 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 7 Jul 2018 23:16:45 +0100 Subject: SubtitleString -> shared_ptr --- tools/dcpinfo.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/dcpinfo.cc b/tools/dcpinfo.cc index 29ef77c9..92f12a3c 100644 --- a/tools/dcpinfo.cc +++ b/tools/dcpinfo.cc @@ -41,6 +41,7 @@ #include "reel_sound_asset.h" #include "reel_subtitle_asset.h" #include "subtitle_string.h" +#include "subtitle_image.h" #include "interop_subtitle_asset.h" #include "smpte_subtitle_asset.h" #include "mono_picture_asset.h" @@ -171,7 +172,7 @@ main_subtitle (shared_ptr reel, bool list_subtitles) cout << " Subtitle ID: " << reel->main_subtitle()->id(); if (reel->main_subtitle()->asset_ref().resolved()) { - list subs = reel->main_subtitle()->asset()->subtitles (); + list > subs = reel->main_subtitle()->asset()->subtitles (); cout << "\n Subtitle: " << subs.size() << " subtitles"; shared_ptr iop = dynamic_pointer_cast (reel->main_subtitle()->asset()); if (iop) { @@ -182,8 +183,15 @@ main_subtitle (shared_ptr reel, bool list_subtitles) cout << " in " << smpte->language().get() << "\n"; } if (list_subtitles) { - BOOST_FOREACH (SubtitleString const& k, subs) { - cout << k << "\n"; + BOOST_FOREACH (shared_ptr k, subs) { + shared_ptr ks = dynamic_pointer_cast (k); + if (ks) { + cout << *ks << "\n"; + } + shared_ptr is = dynamic_pointer_cast (k); + if (is) { + cout << *is << "\n"; + } } } } else { -- cgit v1.2.3