Hand-apply 6a3cd511559433554ab40ed72ff94b7d8dc2c5bd from master;
[dcpomatic.git] / src / lib / video_content.cc
index 8e07174e34016b3b7a008d4958a2bbd55046365d..ca0c687a791d9a1b15996cb0cf2f488b64d05a48 100644 (file)
@@ -221,14 +221,16 @@ VideoContent::take_from_video_examiner (shared_ptr<VideoExaminer> d)
 {
        /* These examiner calls could call other content methods which take a lock on the mutex */
        dcp::Size const vs = d->video_size ();
-       float const vfr = d->video_frame_rate ();
+       optional<float> const vfr = d->video_frame_rate ();
        ContentTime vl = d->video_length ();
        optional<float> const ar = d->sample_aspect_ratio ();
 
        {
                boost::mutex::scoped_lock lm (_mutex);
                _video_size = vs;
-               _video_frame_rate = vfr;
+               if (vfr) {
+                       _video_frame_rate = vfr.get ();
+               }
                _video_length = vl;
                _sample_aspect_ratio = ar;