From c27d14badb229c24533db65dbaee1939dce89455 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 9 Apr 2021 21:20:10 +0200 Subject: Make DCP text track language properly optional and ignore bad values on imported DCPs (#1950). --- src/wx/text_panel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wx/text_panel.cc') diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index cdd61e109..8e6d5cd68 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -343,7 +343,7 @@ TextPanel::update_dcp_tracks () /* XXX: don't display the "magic" track which has empty name and language; this is a nasty hack (see also Film::closed_caption_tracks) */ - if (!i.name.empty() || !i.language.empty()) { + if (!i.name.empty() || i.language) { _dcp_track->Append (std_to_wx(i.summary())); } } -- cgit v1.2.3