34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
|
From a0da953c8637bef4ddb963e0d459dfa37b5a643a Mon Sep 17 00:00:00 2001
|
||
|
From: Carlos Garnacho <carlosg@gnome.org>
|
||
|
Date: Tue, 12 Sep 2017 15:13:46 +0200
|
||
|
Subject: [PATCH] tracker-extract: Skip over virtual elements
|
||
|
|
||
|
It is possible to fool tracker-extract into processing virtual elements
|
||
|
that aren't backed up by files. Those can be safely ignored instead.
|
||
|
|
||
|
https://bugzilla.gnome.org/show_bug.cgi?id=785853
|
||
|
---
|
||
|
src/tracker-extract/tracker-extract-decorator.c | 6 ++++++
|
||
|
1 file changed, 6 insertions(+)
|
||
|
|
||
|
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
|
||
|
index cfb51d797..6e251f436 100644
|
||
|
--- a/src/tracker-extract/tracker-extract-decorator.c
|
||
|
+++ b/src/tracker-extract/tracker-extract-decorator.c
|
||
|
@@ -264,6 +264,12 @@ decorator_next_item_cb (TrackerDecorator *decorator,
|
||
|
|
||
|
g_clear_error (&error);
|
||
|
return;
|
||
|
+ } else if (!tracker_decorator_info_get_url (info)) {
|
||
|
+ /* Skip virtual elements with no real file representation */
|
||
|
+ priv->n_extracting_files--;
|
||
|
+ tracker_decorator_info_unref (info);
|
||
|
+ decorator_get_next_file (decorator);
|
||
|
+ return;
|
||
|
}
|
||
|
|
||
|
data = g_new0 (ExtractData, 1);
|
||
|
--
|
||
|
2.14.1
|
||
|
|