[pitivi/ges: 127/287] ui: Add some debuging logs when seeking went wrong
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 127/287] ui: Add some debuging logs when seeking went wrong
- Date: Thu, 15 Mar 2012 16:36:30 +0000 (UTC)
commit fa95d9b14d9bbce6f2ba23afdebd0e8a9de0764c
Author: Thibault Saunier <thibault saunier collabora com>
Date: Mon Jan 2 10:48:53 2012 -0300
ui: Add some debuging logs when seeking went wrong
pitivi/ui/mainwindow.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 98e0722..32fa24e 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -1149,8 +1149,9 @@ class PitiviMainWindow(gtk.Window, Loggable):
elif position >= self.timeline.getDuration():
position = self.timeline.getDuration()
- self.project_pipeline.seek(1.0, format, gst.SEEK_FLAG_FLUSH,
- gst.SEEK_TYPE_SET, position, gst.SEEK_TYPE_NONE, -1)
+ if not self.project_pipeline.seek(1.0, format, gst.SEEK_FLAG_FLUSH,
+ gst.SEEK_TYPE_SET, position, gst.SEEK_TYPE_NONE, -1):
+ self.warning("Could not seek to %s", gst.TIME_ARGS(position))
self._seeker.setPosition(position)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]