Re: [PATCH] Use GdkPixbufLoader for thumbnailer to reduce memory consumption
- From: Martin Wehner <martin wehner gmail com>
- To: Christian Neumair <chris gnome-de org>
- Cc: nautilus-list gnome org
- Subject: Re: [PATCH] Use GdkPixbufLoader for thumbnailer to reduce memory consumption
- Date: Sat, 08 Apr 2006 01:59:23 +0200
On Fri, 2006-04-07 at 15:30 +0200, Christian Neumair wrote:
> The attached patch ports the nautilus image loading code to
> GdkPixbufLoader, which ensures that less memory is consumed for large
> images. The old thumbnailing code was also not very traceable wrt frame
> addition.
It looks good in general, but:
> if (!gdk_pixbuf_loader_write (loader, buffer, buflen, &error)) {
> /* error might be NULL although FALSE is returned, bug #337611 */
I'm not sure after reading the bug: Is that just an assumption based on reading the code or did you actually get an NULL error?
> if (error != NULL);
> g_error_free (error);
This looks like it doesn't do what you intended.
> scale = (double)args->nominal_size/args->base_size;
Missing whitespaces. (Granted, in the current version too)
> GError *error = NULL;
Styleguide.
Martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]