diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-09 11:13:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-09 11:13:02 +0100 |
| commit | 5c1b079a28941781c9cfa46d57e0c20b55681b32 (patch) | |
| tree | 35c0d2aac409ca1b52699e974f299a64aa5ffc1f /src/reel.cc | |
| parent | 6425742f95a4c2e539061b29016a4a5bd10ac9ae (diff) | |
Basically-working interop subtitle font handling.
Diffstat (limited to 'src/reel.cc')
| -rw-r--r-- | src/reel.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/reel.cc b/src/reel.cc index 106fbf40..4d92d345 100644 --- a/src/reel.cc +++ b/src/reel.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ #include "reel_subtitle_asset.h" #include "decrypted_kdm_key.h" #include "decrypted_kdm.h" +#include "interop_subtitle_asset.h" #include <libxml++/nodes/element.h> using std::string; @@ -176,5 +177,11 @@ Reel::resolve_refs (list<shared_ptr<Object> > objects) if (_main_subtitle) { _main_subtitle->asset_ref().resolve (objects); + + /* Interop subtitle handling is all special cases */ + shared_ptr<InteropSubtitleAsset> iop = dynamic_pointer_cast<InteropSubtitleAsset> (_main_subtitle->asset_ref().object ()); + if (iop) { + iop->resolve_fonts (objects); + } } } |
