[pitivi] pitivi: Be less verbose when we can not get pipeline position



commit 04de06385aecbfc226c427a624f336ef4113f224
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Mon Aug 26 17:06:38 2013 -0400

    pitivi: Be less verbose when we can not get pipeline position
    
    In some cases it is just normal, so do not bother the user about it.

 pitivi/timeline/timeline.py |    2 +-
 pitivi/utils/pipeline.py    |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index fa5c785..6781a98 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1086,7 +1086,7 @@ class Timeline(Gtk.VBox, Zoomable, Loggable):
         try:
             new_pos = Zoomable.nsToPixel(self.app.current.pipeline.getPosition())
         except PipelineError, e:
-            self.error("Pipeline error: %s" % e)
+            self.info("Pipeline error: %s" % e)
             return
         except AttributeError:  # Standalone, no pipeline.
             return
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index c503e63..48a2a1b 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -283,7 +283,7 @@ class SimplePipeline(Signallable, Loggable):
 
         dur = self._getDuration(format)
         if dur is None:
-            self.error("Invalid duration: None")
+            self.info("Invalid duration: None")
         else:
             self.log("Got duration %s" % print_ns(dur))
         if self._duration != dur:
@@ -329,6 +329,8 @@ class SimplePipeline(Signallable, Loggable):
             if cur != Gst.CLOCK_TIME_NONE:
                 self.emit('position', cur)
                 self.lastPosition = cur
+        except PipelineError:
+            pass
         finally:
             return True
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]