Expand Player to support main and sign language video types.
[dcpomatic.git] / src / lib / util.cc
index 95787293b654f2dd560fbd0379596f94bcaa6224..652b5d83f1ca6f676ad366fb8e992a43cd09ec6f 100644 (file)
@@ -1043,3 +1043,15 @@ contains_assetmap(boost::filesystem::path dir)
        return boost::filesystem::is_regular_file(dir / "ASSETMAP") || boost::filesystem::is_regular_file(dir / "ASSETMAP.xml");
 }
 
+
+bool
+contains_sign_language(ContentList const& content)
+{
+       return std::any_of(
+               content.begin(),
+               content.end(),
+               [](shared_ptr<const Content> c) {
+                       return c->video && c->video->type() == VideoType::SIGN_LANGUAGE;
+               });
+}
+