diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-06 17:46:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-26 17:20:25 +0100 |
| commit | 54e2644ed4dcc4faf5135e60926cfdda14886fea (patch) | |
| tree | ca1599fe32e3ace691dffcdb6ded45ad29baea59 /src/wx | |
| parent | 1f077d2b791a059ccef4069dca07ead990bd568e (diff) | |
Support FCP XML files containing subtitles (#2909).
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/text_panel.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index 382173a18..0625b4187 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -39,6 +39,7 @@ #include "lib/dcp_subtitle_content.h" #include "lib/dcp_subtitle_decoder.h" #include "lib/decoder_factory.h" +#include "lib/fcpxml_content.h" #include "lib/ffmpeg_content.h" #include "lib/ffmpeg_subtitle_stream.h" #include "lib/film.h" @@ -533,6 +534,7 @@ TextPanel::setup_sensitivity () auto sc = std::dynamic_pointer_cast<const StringTextFileContent>(i); auto dc = std::dynamic_pointer_cast<const DCPContent>(i); auto dsc = std::dynamic_pointer_cast<const DCPSubtitleContent>(i); + auto fcp = std::dynamic_pointer_cast<const FCPXMLContent>(i); if (fc) { if (!fc->text.empty()) { ++ffmpeg_subs; @@ -541,7 +543,7 @@ TextPanel::setup_sensitivity () } else if (dc || dsc) { ++dcp_subs; ++any_subs; - } else if (sc) { + } else if (sc || fcp) { /* XXX: in the future there could be bitmap subs from DCPs */ ++any_subs; } |
