Add language property to SubtitleContent and use it in output DCP subtitle files.
[dcpomatic.git] / src / lib / dcp_subtitle_content.cc
index 7be96ceeb7d1127b35dfb88a71e35389abffde25..798afbfc39dfc87aca74d50142b9076bd98b9770 100644 (file)
@@ -48,6 +48,7 @@ DCPSubtitleContent::examine (shared_ptr<Job> job, bool calculate_digest)
 {
        Content::examine (job, calculate_digest);
        dcp::SubtitleContent sc (path (0), false);
+       _subtitle_language = sc.language ();
        _length = DCPTime::from_seconds (sc.latest_subtitle_out().to_seconds ());
 }