[pitivi/gtktimeline] elements:previewer: Use the TrackElement duration to compute thumbnails duration
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/gtktimeline] elements:previewer: Use the TrackElement duration to compute thumbnails duration
- Date: Mon, 8 Jun 2015 17:44:38 +0000 (UTC)
commit d5a79e0949b82be0052ee320927d77d6191b6521
Author: Thibault Saunier <tsaunier gnome org>
Date: Mon Jun 8 19:37:14 2015 +0200
elements:previewer: Use the TrackElement duration to compute thumbnails duration
In the case of splitting the negotiated rectangle does not have the
right width at that point, also avoid converting from Pixels to Ns
for nothing.
pitivi/timeline/previewers.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 679c531..87b7d86 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -388,7 +388,7 @@ class VideoPreviewer(Gtk.Layout, PreviewGenerator, Zoomable, Loggable):
thumb_duration = self._get_thumb_duration()
element_left = self.pixelToNs(rect.x) + self.bElement.props.in_point
- element_right = element_left + self.pixelToNs(rect.width)
+ element_right = element_left + self.bElement.props.duration
element_left = quantize(element_left, thumb_duration)
for current_time in range(element_left, element_right, thumb_duration):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]