[maemo-commits] [maemo-commits] r16290 - projects/haf/branches/hildon-thumbnail/daemonize/daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Sep 29 21:03:04 EEST 2008
Author: pvanhoof
Date: 2008-09-29 21:03:02 +0300 (Mon, 29 Sep 2008)
New Revision: 16290

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c
Log:
Stop once handled

Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c	2008-09-29 18:00:44 UTC (rev 16289)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c	2008-09-29 18:03:02 UTC (rev 16290)
@@ -196,11 +196,11 @@
 		// TODO: Perform heuristics from uri to path
 
 		if (!handled) {
-
+			gboolean handled = FALSE;
 			proxies = albumart_manager_get_handlers (priv->manager);
 			copy = proxies;
 
-			while (copy) {
+			while (copy && !handled) {
 				DBusGProxy *proxy = copy->data;
 				GError *error = NULL;
 
@@ -222,9 +222,11 @@
 					g_signal_emit (task->object, signals[ERROR_SIGNAL],
 						       0, task->num, 1, error->message);
 					g_clear_error (&error);
-				} else
+				} else {
 					g_signal_emit (task->object, signals[READY_SIGNAL], 
 						       0, artist, album, uri, path);
+					handled = TRUE;
+				}
 
 				copy = g_list_next (copy);
 			} 


More information about the maemo-commits mailing list