[gnome-music: 3/6] Simply copy the pixbuf
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music: 3/6] Simply copy the pixbuf
- Date: Mon, 5 Aug 2013 20:41:05 +0000 (UTC)
commit ea4684db647f6623d935b2d172970163259b916b
Author: Guillaume Quintard <guillaume quintard gmail com>
Date: Sun Aug 4 19:49:00 2013 +0200
Simply copy the pixbuf
Instead of recreating it from the surface
gnomemusic/albumArtCache.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index 72a13b9..97e3522 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -298,9 +298,9 @@ class AlbumArtCache:
ctx.set_source_rgb(1, 1, 1)
ctx.fill()
self.frame_lock.acquire()
- self.frame_cache[key] = surface
+ self.frame_cache[key] = Gdk.pixbuf_get_from_surface(surface, 0, 0, width, height)
self.frame_lock.release()
- return Gdk.pixbuf_get_from_surface(self.frame_cache[key], 0, 0, width, height)
+ return self.frame_cache[key].copy()
def lookup(self, item, width, height, callback, data=None):
request = LookupRequest(item, width, height, callback, data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]