Show sign language content in the list.
authorCarl Hetherington <cth@carlh.net>
Tue, 6 Sep 2022 19:03:16 +0000 (21:03 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 22 Dec 2022 23:12:00 +0000 (00:12 +0100)
src/lib/ffmpeg_content.cc
src/wx/content_panel.cc

index 6681a4f0a897aa6c6c9de3c192c1cad434d69a8c..00e6b0b84faa9af75c405fd94e9b00f242d89b77 100644 (file)
@@ -341,7 +341,9 @@ FFmpegContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job)
 string
 FFmpegContent::summary () const
 {
-       if (video && audio) {
+       if (video && video->type() == VideoType::SIGN_LANGUAGE) {
+               return String::compose(_("%1 [sign language]"), path_summary());
+       } else if (video && audio) {
                return String::compose (_("%1 [movie]"), path_summary());
        } else if (video) {
                return String::compose (_("%1 [video]"), path_summary());
index 9de22e8446639c304a70467bdec046bfa9947627..01ed37ab904538c0b124f86202112ff5c00a3202 100644 (file)
@@ -870,6 +870,7 @@ ContentPanel::film_content_changed (int property)
 {
        if (
                property == ContentProperty::PATH ||
+               property == VideoContentProperty::TYPE ||
                property == DCPContentProperty::NEEDS_ASSETS ||
                property == DCPContentProperty::NEEDS_KDM ||
                property == DCPContentProperty::NAME