setup_pixels_per_second ();
}
Refresh ();
- } else if (property == AudioContentProperty::AUDIO_MAPPING) {
+ } else if (property == AudioContentProperty::AUDIO_STREAMS) {
recreate_views ();
}
}
if (_snap) {
- DCPTime const new_end = new_position + _down_view->content()->length_after_trim () - 1;
+ DCPTime const new_end = new_position + _down_view->content()->length_after_trim () - DCPTime (1);
/* Signed `distance' to nearest thing (i.e. negative is left on the timeline,
positive is right).
*/
}
maybe_snap (cv->content()->position(), new_position, nearest_distance);
- maybe_snap (cv->content()->position(), new_end + 1, nearest_distance);
- maybe_snap (cv->content()->end() + 1, new_position, nearest_distance);
- maybe_snap (cv->content()->end() + 1, new_end, nearest_distance);
+ maybe_snap (cv->content()->position(), new_end + DCPTime (1), nearest_distance);
+ maybe_snap (cv->content()->end() + DCPTime (1), new_position, nearest_distance);
+ maybe_snap (cv->content()->end() + DCPTime (1), new_end, nearest_distance);
}
if (nearest_distance) {