[pitivi: 5/6] Revert "ui/previewer: remove the correct segment from the queue."



commit 090b8bff2b9f0ba4eb280ad5d2014ca5b9a8e17b
Author: Alessandro Decina <alessandro d gmail com>
Date:   Fri Sep 10 16:30:48 2010 +0200

    Revert "ui/previewer: remove the correct segment from the queue."
    
    This reverts commit bc6cb426226ce06f217b43bf0ea12bf9e1f56099.
    The bug was actually somewhere else. Doh.

 pitivi/ui/previewer.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/previewer.py b/pitivi/ui/previewer.py
index 22c9972..a356542 100644
--- a/pitivi/ui/previewer.py
+++ b/pitivi/ui/previewer.py
@@ -294,7 +294,8 @@ class RandomAccessPreviewer(Previewer):
         self._cache[segment] = surface
         self.emit("update", segment)
 
-        self._queue.remove(waiting)
+        if segment in self._queue:
+            self._queue.remove(segment)
         self._nextThumbnail()
         return False
 



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