tracker r2779 - in trunk: . src/tracker-indexer/modules
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2779 - in trunk: . src/tracker-indexer/modules
- Date: Fri, 9 Jan 2009 12:46:26 +0000 (UTC)
Author: carlosg
Date: Fri Jan 9 12:46:25 2009
New Revision: 2779
URL: http://svn.gnome.org/viewvc/tracker?rev=2779&view=rev
Log:
2009-01-09 Carlos Garnacho <carlos imendio com>
* src/tracker-indexer/modules/files.c
(tracker_regular_file_get_service_type): Do not sniff mimetype and
return NULL service type if the file doesn't exist.
Modified:
trunk/ChangeLog
trunk/src/tracker-indexer/modules/files.c
Modified: trunk/src/tracker-indexer/modules/files.c
==============================================================================
--- trunk/src/tracker-indexer/modules/files.c (original)
+++ trunk/src/tracker-indexer/modules/files.c Fri Jan 9 12:46:25 2009
@@ -93,7 +93,12 @@
gchar *mime_type, *path;
f = tracker_module_file_get_file (file);
- path = g_file_get_path (f);
+
+ if (!g_file_query_exists (f, NULL)) {
+ return NULL;
+ }
+
+ path = g_file_get_path (f);
mime_type = tracker_file_get_mime_type (path);
service_type = tracker_ontology_get_service_by_mime (mime_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]