[maemo-commits] [maemo-commits] r16212 - projects/haf/branches/hildon-thumbnail/daemonize/thumbs

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Sep 24 16:48:06 EEST 2008
Author: pvanhoof
Date: 2008-09-24 16:48:05 +0300 (Wed, 24 Sep 2008)
New Revision: 16212

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c
Log:
Rather funky bug fixed

Modified: projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c	2008-09-24 13:45:06 UTC (rev 16211)
+++ projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c	2008-09-24 13:48:05 UTC (rev 16212)
@@ -414,24 +414,25 @@
 
 		g_idle_add_full (G_PRIORITY_DEFAULT, have_all_cb, info,
 						 (GDestroyNotify) free_thumbsitem_and_paths);
+
+		return;
 	}
 
 	g_free (large);
 	g_free (normal);
 	g_free (cropped);
 
-	init ();
+	if (!have_all) {
 
-	uris = (GStrv) g_malloc0 (sizeof (gchar *) * 2);
+		init ();
+		uris = (GStrv) g_malloc0 (sizeof (gchar *) * 2);
+		uris[0] = g_strdup (uri);
+		org_freedesktop_thumbnailer_Generic_queue_async (proxy, (const char **) uris, 0, 
+								 on_got_handle, item);
 
+		g_strfreev (uris);
+	}
 
-	uris[0] = g_strdup (uri);
-
-	org_freedesktop_thumbnailer_Generic_queue_async (proxy, (const char **) uris, 0, 
-							 on_got_handle, item);
-
-	g_strfreev (uris);
-
 	return THUMBS_HANDLE (item);
 }
 


More information about the maemo-commits mailing list