Commit c9534a3c authored by Philip Van Hoof's avatar Philip Van Hoof Committed by Philip Van Hoof

Don't continue trying to request album art if no service provides

2009-03-11  Philip Van Hoof  <philip@codeminded.be>

        * src/libtracker-common/tracker-albumart.c: Don't continue trying to
        request album art if no service provides album-art downloading


svn path=/trunk/; revision=3048
parent b88ab14d
2009-03-11 Philip Van Hoof <philip@codeminded.be>
* src/libtracker-common/tracker-albumart.c: Don't continue trying to
request album art if no service provides album-art downloading
2009-03-10 Mikael Ottela <mikael.ottela@ixonos.com>
* src/tracker-extract/tracker-extract-gstreamer-helix.c: Removed
......
......@@ -59,6 +59,8 @@ typedef struct {
gchar *local_uri;
} GetFileInfo;
static gboolean no_more_requesting = FALSE;
static gchar *
my_compute_checksum_for_data (GChecksumType checksum_type,
const guchar *data,
......@@ -544,7 +546,10 @@ tracker_albumart_queue_cb (DBusGProxy *proxy,
G_TYPE_INVALID);
if (error) {
g_warning ("%s", error->message);
if (g_strcmp0 (error->message, "The name " ALBUMARTER_SERVICE " was not provided by any .service files") == 0)
no_more_requesting = TRUE;
else
g_warning ("%s", error->message);
g_clear_error (&error);
}
......@@ -652,6 +657,9 @@ tracker_albumart_request_download (const gchar *album,
{
GetFileInfo *info;
if (no_more_requesting)
return;
info = g_slice_new (GetFileInfo);
info->local_uri = g_strdup (local_uri);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment