[pitivi/ges: 236/287] viewer: Fix seeking to the end of the timeline
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 236/287] viewer: Fix seeking to the end of the timeline
- Date: Thu, 15 Mar 2012 16:45:41 +0000 (UTC)
commit 1b92f18d9ef2842e4754d8a2433a8ec85366420c
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Fri Jan 27 19:09:04 2012 +0100
viewer: Fix seeking to the end of the timeline
pitivi/viewer.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 8a07b16..4391811 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -419,7 +419,9 @@ class PitiviViewer(gtk.VBox, Loggable):
def _goToEndCb(self, unused_button):
try:
- end = self.app.current.timeline.props.duration
+ # FIXME: ideally gstreamer should allow seeking to the exact end...
+ # but since it doesn't, we seek one nanosecond before the end.
+ end = self.app.current.timeline.props.duration - 1
except:
self.warning("Couldn't get timeline duration")
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]