[tracker/tracker-0.10-nb276745: 5/7] tracker-extract, jpeg: Ignore images in certain directories
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10-nb276745: 5/7] tracker-extract, jpeg: Ignore images in certain directories
- Date: Tue, 18 Oct 2011 13:21:30 +0000 (UTC)
commit b8b008ab311913bbf266a056a582325594fe8594
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Oct 18 12:22:29 2011 +0200
tracker-extract, jpeg: Ignore images in certain directories
src/tracker-extract/tracker-extract-jpeg.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-jpeg.c b/src/tracker-extract/tracker-extract-jpeg.c
index f97e80e..c6033ef 100644
--- a/src/tracker-extract/tracker-extract-jpeg.c
+++ b/src/tracker-extract/tracker-extract-jpeg.c
@@ -34,6 +34,7 @@
#include <libtracker-sparql/tracker-sparql.h>
#include "tracker-main.h"
+#include "tracker-config.h"
#define CM_TO_INCH 0.393700787
@@ -109,7 +110,7 @@ guess_dlna_profile (gint width,
const gchar **dlna_profile,
const gchar **dlna_mimetype)
{
- gchar *profile = NULL;
+ const gchar *profile = NULL;
if (dlna_profile) {
*dlna_profile = NULL;
@@ -178,6 +179,13 @@ extract_jpeg (const gchar *uri,
return;
}
+ if (g_slist_find_custom (tracker_config_get_ignore_images_under (
+ tracker_main_get_config()),
+ filename, (GCompareFunc) strstr)) {
+ g_free (filename);
+ return;
+ }
+
f = tracker_file_open (filename);
g_free (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]