[pitivi/ges: 10/287] GES : make sure the position callback doesn't fail
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 10/287] GES : make sure the position callback doesn't fail
- Date: Thu, 15 Mar 2012 16:26:40 +0000 (UTC)
commit b071ec4bc18a099d72403bcf17920efbd421016a
Author: Mathieu Duponchelle <seeed laposte net>
Date: Wed Jul 20 09:11:37 2011 +0200
GES : make sure the position callback doesn't fail
pitivi/ui/viewer.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index 857370d..eb375bc 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -611,7 +611,10 @@ class PitiviViewer(gtk.VBox, Loggable):
def _posCb(self):
if not self.playing :
return False
- position = self.pipeline.query_position(gst.FORMAT_TIME)[0]
+ try:
+ position = self.pipeline.query_position(gst.FORMAT_TIME)[0]
+ except:
+ return True
self._newTime(position)
self.app.gui.timeline._canvas.timelinePositionChanged(position)
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]