Allow moving-still-image sources to have their frame rate specified.
[dcpomatic.git] / src / lib / image_content.cc
index b05fa6b8d69ce8599503e3d9b3c1e6c5179e6c9a..2d29df0c4bf2fa5a25b32e7e3aa7d200c6c3ca4c 100644 (file)
@@ -144,3 +144,19 @@ ImageContent::still () const
 {
        return number_of_paths() == 1;
 }
+
+void
+ImageContent::set_video_frame_rate (float r)
+{
+       {
+               boost::mutex::scoped_lock lm (_mutex);
+               if (_video_frame_rate == r) {
+                       return;
+               }
+               
+               _video_frame_rate = r;
+       }
+       
+       signal_changed (VideoContentProperty::VIDEO_FRAME_RATE);
+}
+