Add frame rate to technical summary of content.
authorCarl Hetherington <cth@carlh.net>
Tue, 25 Sep 2018 21:06:42 +0000 (22:06 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 Sep 2018 21:06:52 +0000 (22:06 +0100)
src/lib/content.cc

index c2cb7e005969327fc94e54cc40be3ef912e6153e..3ab4a5959a81cbb8ecdc42eca672b822add569c7 100644 (file)
@@ -295,7 +295,11 @@ Content::clone () const
 string
 Content::technical_summary () const
 {
-       return String::compose ("%1 %2 %3", path_summary(), digest(), position().seconds());
+       string s = String::compose ("%1 %2 %3", path_summary(), digest(), position().seconds());
+       if (_video_frame_rate) {
+               s += String::compose(" %1", *_video_frame_rate);
+       }
+       return s;
 }
 
 DCPTime