[tracker/miner-fs-refactor] libtracker-miner: Add back the code removing thumbnail/albumart
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor] libtracker-miner: Add back the code removing thumbnail/albumart
- Date: Tue, 22 Nov 2011 15:49:43 +0000 (UTC)
commit fc2d1817e68717e05a2ffcb26d3a4d3c902b7b89
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Nov 22 16:46:25 2011 +0100
libtracker-miner: Add back the code removing thumbnail/albumart
The mimetype isn't needed there after all.
src/libtracker-miner/tracker-miner-fs.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 6c90ecb..6b7140a 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1245,7 +1245,6 @@ item_remove (TrackerMinerFS *fs,
gboolean only_children)
{
gchar *uri;
- gchar *mime = NULL;
TrackerTask *task;
guint flags = 0;
@@ -1256,17 +1255,11 @@ item_remove (TrackerMinerFS *fs,
if (!only_children) {
flags = TRACKER_BULK_MATCH_EQUALS;
+ } else {
+ tracker_thumbnailer_remove_add (uri, NULL);
+ tracker_albumart_remove_add (uri, NULL);
}
-#if 0
- /* FIXME: Find out mime to remove thumbnail/albumart */
-
- tracker_thumbnailer_remove_add (uri, mime);
- tracker_albumart_remove_add (uri, mime);
-#endif
-
- g_free (mime);
-
/* FIRST:
* Remove tracker:available for the resources we're going to remove.
* This is done so that unavailability of the resources is marked as soon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]