From 78cece0461b94e5ffc4417f0228e0ad528ad8efe Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 9 Jul 2018 15:38:44 +0100 Subject: Maintain frame-snap for position and trim when set_video_frame_rate is called (#1335). --- src/lib/content.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/content.cc b/src/lib/content.cc index f2380653f..2e4e77f8d 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2016 Carl Hetherington + Copyright (C) 2013-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -360,6 +360,12 @@ Content::set_video_frame_rate (double r) } signal_changed (ContentProperty::VIDEO_FRAME_RATE); + + /* Make sure things are still on frame boundaries */ + if (video) { + set_position (position()); + set_trim_start (trim_start()); + } } void -- cgit v1.2.3