Fix mis-timed subtitles with non-zero video PTS offsets.
[dcpomatic.git] / src / lib / image_content.cc
index 9259242a04f442dc9d4340d6302e1a867e07af02..b05fa6b8d69ce8599503e3d9b3c1e6c5179e6c9a 100644 (file)
@@ -50,7 +50,7 @@ ImageContent::ImageContent (shared_ptr<const Film> f, boost::filesystem::path p)
 }
 
 
-ImageContent::ImageContent (shared_ptr<const Film> f, shared_ptr<const cxml::Node> node)
+ImageContent::ImageContent (shared_ptr<const Film> f, shared_ptr<const cxml::Node> node, int)
        : Content (f, node)
        , VideoContent (f, node)
 {
@@ -60,12 +60,15 @@ ImageContent::ImageContent (shared_ptr<const Film> f, shared_ptr<const cxml::Nod
 string
 ImageContent::summary () const
 {
+       string s = path_summary () + " ";
        /* Get the string() here so that the name does not have quotes around it */
        if (still ()) {
-               return String::compose (_("%1 [still]"), path().filename().string());
+               s += _("[still]");
+       } else {
+               s += _("[moving images]");
        }
 
-       return String::compose (_("%1 [moving images]"), path().filename().string());
+       return s;
 }
 
 string