[totem] Check if large thumbnails need borders



commit 83a6792f80a8de73c3bb2dd13bc44e16a22039b7
Author: Ross Burton <ross linux intel com>
Date:   Sat Sep 25 09:08:15 2010 +0100

    Check if large thumbnails need borders
    
    Otherwise large (>256) raw thumbnails got sprockets anyway.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621802

 src/totem-video-thumbnailer.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index bc98539..3234f0e 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -303,8 +303,12 @@ scale_pixbuf (GdkPixbuf *pixbuf, int size, gboolean is_still)
 			result = small;
 		}
 	} else {
-		result = add_holes_to_pixbuf_large (pixbuf, size);
-		g_return_val_if_fail (result != NULL, NULL);
+		if (is_still == FALSE) {
+			result = add_holes_to_pixbuf_large (pixbuf, size);
+			g_return_val_if_fail (result != NULL, NULL);
+		} else {
+			result = g_object_ref (pixbuf);
+		}
 	}
 
 	return result;



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