From 5285d21e352638daa3a7f3b871bfedcffe3ca312 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 17 Apr 2013 03:34:54 +0200 Subject: amend to 930fce --- gtk2_ardour/video_image_frame.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gtk2_ardour/video_image_frame.cc') diff --git a/gtk2_ardour/video_image_frame.cc b/gtk2_ardour/video_image_frame.cc index 7164f84551..aeafe85997 100644 --- a/gtk2_ardour/video_image_frame.cc +++ b/gtk2_ardour/video_image_frame.cc @@ -48,10 +48,10 @@ VideoImageFrame::VideoImageFrame (PublicEditor& ed, ArdourCanvas::Group& parent, queued_request=false; video_frame_number = -1; rightend = -1; - frame_position = 0; + sample_position = 0; thread_active=false; - unit_position = editor.sample_to_pixel (frame_position); + unit_position = editor.sample_to_pixel (sample_position); image = new ArdourCanvas::Image (_parent, Cairo::FORMAT_ARGB32, clip_width, clip_height); img = image->get_image(); @@ -72,18 +72,18 @@ VideoImageFrame::~VideoImageFrame () } void -VideoImageFrame::set_position (framepos_t frame) +VideoImageFrame::set_position (framepos_t sample) { double new_unit_position = editor.sample_to_pixel (frame); image->move (ArdourCanvas::Duple (new_unit_position - unit_position, 0.0)); - frame_position = frame; + sample_position = sample; unit_position = new_unit_position; } void VideoImageFrame::reposition () { - set_position (frame_position); + set_position (sample_position); } void -- cgit v1.2.3