[maemo-commits] [maemo-commits] r16290 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Sep 29 21:03:04 EEST 2008
- Previous message: [maemo-commits] r16289 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Next message: [maemo-commits] r16291 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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); }
- Previous message: [maemo-commits] r16289 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Next message: [maemo-commits] r16291 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]