[tracker] Do not puke with paths containing ':'
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Do not puke with paths containing ':'
- Date: Wed, 15 Apr 2009 07:49:31 -0400 (EDT)
commit 11ed26707377895b0d2c0014f1b75b1765342178
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Apr 15 13:35:39 2009 +0200
Do not puke with paths containing ':'
* src/libtracker-common/tracker-albumart.c (tracker_albumart_get_path): Improve
a bit this stupid check to distinguish paths from URIs.
---
src/libtracker-common/tracker-albumart.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libtracker-common/tracker-albumart.c b/src/libtracker-common/tracker-albumart.c
index 5e6284c..9b3dd6d 100644
--- a/src/libtracker-common/tracker-albumart.c
+++ b/src/libtracker-common/tracker-albumart.c
@@ -632,7 +632,7 @@ tracker_albumart_get_path (const gchar *a,
gchar *local_dir;
GFile *file, *parent;
- if (strchr (uri, ':')) {
+ if (strstr (uri, "://")) {
file = g_file_new_for_uri (uri);
} else {
file = g_file_new_for_path (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]