[pitivi] previewers: Set the thumbnail pixbuf in a single place



commit 7e6b2731edaa932d4f8e403b22ffad87ca3b255f
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Dec 9 09:19:36 2013 +0100

    previewers: Set the thumbnail pixbuf in a single place

 pitivi/timeline/previewers.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index f8816fe..b84b7a5 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -395,7 +395,7 @@ class VideoPreviewer(Clutter.ScrollActor, PreviewGenerator, Zoomable, Loggable):
         self.thumb_cache[time] = pixbuf
 
         if time in self.thumbs:
-            self.thumbs[time].set_from_gdkpixbuf_animated(pixbuf)
+            thumb = self.thumbs[time]
         else:
             sorted_times = sorted(self.thumbs.keys())
             index = binary_search(sorted_times, time)
@@ -409,7 +409,7 @@ class VideoPreviewer(Clutter.ScrollActor, PreviewGenerator, Zoomable, Loggable):
                     self.error("Surrounding thumbnails are already set "
                                "for timestamp %s" % print_ns(time))
                     return
-            thumb.set_from_gdkpixbuf_animated(pixbuf)
+        thumb.set_from_gdkpixbuf_animated(pixbuf)
 
     # Interface (Zoomable)
 


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