double VWindowEditing::get_position()
{
EDL *edl = vwindow->get_edl();
- double position = !edl ? 0 : edl->local_session->get_selectionstart(1) +
- edl->session->get_frame_offset() / edl->session->frame_rate;
+ double position = !edl ? 0 : edl->local_session->get_selectionstart(1);
return position;
}
EDL *edl = vwindow->get_edl();
if( !edl ) return;
if( get_position() != position ) {
- position -= edl->session->get_frame_offset() / edl->session->frame_rate;
if( position < 0 ) position = 0;
edl->local_session->set_selectionstart(position);
edl->local_session->set_selectionend(position);
vwindow->set_outpoint();
}
-void VWindowEditing::clear_inpoint()
+void VWindowEditing::unset_inoutpoint()
{
- vwindow->clear_inpoint();
+ vwindow->unset_inoutpoint();
}
-void VWindowEditing::clear_outpoint()
-{
- vwindow->clear_outpoint();
-}
void VWindowEditing::to_clip()
{
//printf("VWindowGUI::update_points 2\n");
long pixel = (long)((double)edl->local_session->in_point /
- edl->tracks->total_playable_length() *
+ edl->tracks->total_length() *
(mwindow->theme->vtimebar_w -
2 *
mwindow->theme->in_point[0]->get_w())) +
//printf("VWindowGUI::update_points 10\n");
pixel = (long)((double)edl->local_session->out_point /
- (edl->tracks->total_playable_length() + 0.5) *
+ (edl->tracks->total_length() + 0.5) *
(mwindow->theme->vtimebar_w -
2 *
mwindow->theme->in_point[0]->get_w())) +