[pitivi] pipeline: Do not forget to reset _timeout_async_id when removing the GSource



commit b554b8476059ba9fcf9f38c6a0c7ba0c36695814
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue Nov 4 20:25:58 2014 +0100

    pipeline: Do not forget to reset _timeout_async_id when removing the GSource
    
    When the callback of a GSource return False, it means the GSource is
    removed. So we need to properly reset the _timeout_async_id in that
    case too.

 pitivi/utils/pipeline.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 8c0fa05..d055e57 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -374,6 +374,9 @@ class SimplePipeline(GObject.Object, Loggable):
     def _resetWaitingForAsyncDone(self):
         self.warning("we didn't get async done, this is a bug")
         self._waiting_for_async_done = False
+
+        # Source is being removed
+        self._timeout_async_id = 0
         return False
 
     def simple_seek(self, position):


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