diff options
author | Robin Gareus <robin@gareus.org> | 2013-06-07 14:37:15 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-06-07 14:37:15 +0200 |
commit | 31fbf351a818ed860e82280467a23b7d9f59c107 (patch) | |
tree | 78ddaff56ec0a7b3adb8500f8e7c852e1ca05ae2 | |
parent | 94b6b4a7d2a158b4a8f89589fa00f5742b476b68 (diff) |
vtl: round fractional framerates to 1/100 to compare for identity
-rw-r--r-- | gtk2_ardour/video_timeline.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/video_timeline.cc b/gtk2_ardour/video_timeline.cc index d8913f27aa..743bc3216c 100644 --- a/gtk2_ardour/video_timeline.cc +++ b/gtk2_ardour/video_timeline.cc @@ -507,7 +507,7 @@ VideoTimeLine::video_file_info (std::string filename, bool local) } _session->config.set_video_pullup(0); /* TODO only set if set_timecode_format() was successful ?!*/ } - if (video_file_fps != _session->timecode_frames_per_second()) { + if (floor(video_file_fps*100) != floor(_session->timecode_frames_per_second()*100)) { warning << _("Video file's framerate is not equal to Ardour session timecode's framerate: ") << video_file_fps << _(" vs ") << _session->timecode_frames_per_second() << endmsg; } |