[pitivi] pipeline: Do not wait for ASYNC_DONE if seeking failed



commit 122145947eadbce8c85254cf5a4db69a7c6394b1
Author: Thibault Saunier <tsaunier gnome org>
Date:   Sun Jan 24 11:01:35 2016 +0100

    pipeline: Do not wait for ASYNC_DONE if seeking failed
    
    Differential Revision: https://phabricator.freedesktop.org/D700

 pitivi/utils/pipeline.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 95cb52e..e3c3624 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -361,11 +361,11 @@ class SimplePipeline(GObject.Object, Loggable):
                                   position,
                                   Gst.SeekType.NONE,
                                   -1)
-        self._addWaitingForAsyncDoneTimeout()
 
         if not res:
             raise PipelineError(self.get_name() + " seek failed: " + str(position))
 
+        self._addWaitingForAsyncDoneTimeout()
         self._last_position = position
 
         self.debug("seeking successful")


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