leftmost_position => leftmost_sample, current_page_frames => current_page_samples
[ardour.git] / gtk2_ardour / editor_videotimeline.cc
index 574400c2d9f16e5291aafb858ff147c723f1e86c..b550bbee550dd672472c8cdcfd1347694393eccd 100644 (file)
@@ -56,7 +56,7 @@ void
 Editor::update_video_timeline (bool flush)
 {
 #if DEBUG
-       framepos_t rightmost_frame = leftmost_frame + current_page_frames();
+       framepos_t rightmost_frame = leftmost_frame + current_page_samples();
        std::cout << "VIDEO SCROLL: " << leftmost_frame << " -- " << rightmost_frame << std::endl;
        std::cout << "SCROLL UNITS: " << sample_to_pixel(leftmost_frame) << " -- " << sample_to_pixel(rightmost_frame)
                  << " = " << sample_to_pixel(rightmost_frame) - sample_to_pixel(leftmost_frame)