Commit 9fb63dad authored by Philip Van Hoof's avatar Philip Van Hoof Committed by Philip Van Hoof

src/libtracker-data/tracker-turtle.c

2009-02-05  Philip Van Hoof  <philip@codeminded.be>

	* src/libtracker-data/tracker-turtle.c
	* src/tracker-extract/tracker-albumart.c
	* src/libtracker-common/tracker-thumbnailer.c: Using g_filename_to_uri
	instead of doing filename to uri conversion wrong


svn path=/trunk/; revision=2881
parent 3b32f5b7
2009-02-05 Philip Van Hoof <philip@codeminded.be>
* src/libtracker-data/tracker-turtle.c
* src/tracker-extract/tracker-albumart.c
* src/libtracker-common/tracker-thumbnailer.c: Using g_filename_to_uri
instead of doing filename to uri conversion wrong
2009-02-05 Carlos Garnacho <carlos@imendio.com>
* src/libtracker-db/tracker-db-index.c (indexer_update_word): Fix
......
......@@ -345,12 +345,12 @@ tracker_thumbnailer_move (const gchar *from_uri,
private->request_id);
if (!strstr (to_uri, ":/"))
to[0] = g_strdup_printf ("file://%s", to_uri);
to[0] = g_filename_to_uri (to_uri, NULL, NULL);
else
to[0] = g_strdup (to_uri);
if (!strstr (from_uri, ":/"))
from[0] = g_strdup_printf ("file://%s", from_uri);
from[0] = g_filename_to_uri (from_uri, NULL, NULL);
else
from[0] = g_strdup (from_uri);
......@@ -401,7 +401,7 @@ tracker_thumbnailer_remove (const gchar *uri,
private->request_id++;
if (!strstr (uri, ":/"))
uris[0] = g_strdup_printf ("file://%s", uri);
uris[0] = g_filename_to_uri (uri, NULL, NULL);
else
uris[0] = g_strdup (uri);
......@@ -497,7 +497,7 @@ tracker_thumbnailer_get_file_thumbnail (const gchar *uri,
/* Add new URI (detect if we got passed a path) */
if (!strstr (uri, ":/"))
private->uris[private->count] = g_strdup_printf ("file://%s", uri);
private->uris[private->count] = g_filename_to_uri (uri, NULL, NULL);
else
private->uris[private->count] = g_strdup (uri);
......
......@@ -388,7 +388,7 @@ tracker_turtle_optimize (const gchar *turtle_file)
info->serializer = raptor_new_serializer ("turtle");
suri = raptor_new_uri ((unsigned char *) "/");
base_uri = g_strdup_printf ("file://%s", turtle_file);
base_uri = g_filename_to_uri (turtle_file, NULL, NULL);
raptor_serialize_start_to_file_handle (info->serializer,
suri, target_file);
......
......@@ -548,7 +548,7 @@ get_file_albumart_queue_cb (DBusGProxy *proxy,
if (g_file_test (info->art_path, G_FILE_TEST_EXISTS)) {
gchar * asuri = g_strdup_printf ("file://%s", info->art_path);
gchar * asuri = g_filename_to_uri (info->art_path, NULL, NULL);
tracker_thumbnailer_get_file_thumbnail (asuri, "image/jpeg");
g_free (asuri);
......@@ -706,7 +706,7 @@ tracker_process_albumart (const unsigned char *buffer,
if (strchr (filename, ':'))
filename_uri = g_strdup (filename);
else
filename_uri = g_strdup_printf ("file://%s", filename);
filename_uri = g_filename_to_uri (filename, NULL, NULL);
get_albumart_path (artist, album, "album", filename_uri,
&art_path, &local_uri);
......@@ -765,7 +765,7 @@ tracker_process_albumart (const unsigned char *buffer,
* device */
if (g_file_test (art_path, G_FILE_TEST_EXISTS)) {
gchar *asuri = g_strdup_printf ("file://%s", art_path);
gchar *asuri = g_filename_to_uri (art_path, NULL, NULL);
tracker_thumbnailer_get_file_thumbnail (asuri, "image/jpeg");
g_free (asuri);
}
......
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