summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-08-21 20:00:04 +0200
committerCarlos Garnacho <carlosg@gnome.org>2020-08-21 20:00:04 +0200
commit8d7aa717f15c5bd825e7a0040252e26388c903f9 (patch)
tree8ef85261191e02e6cc5b2d694a6748702c7c5c05
parent265cd7ebbae35574ddfb8c415f9f88206422223a (diff)
downloadgrilo-plugins-8d7aa717f15c5bd825e7a0040252e26388c903f9.tar.gz
tracker3: Ignore changes in unhandled graphs
We are essentially interested in data from audio/video/image graphs. Everything is foreign to this plugin.
-rw-r--r--src/tracker3/grl-tracker-source-notif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tracker3/grl-tracker-source-notif.c b/src/tracker3/grl-tracker-source-notif.c
index dafcf49..f087e95 100644
--- a/src/tracker3/grl-tracker-source-notif.c
+++ b/src/tracker3/grl-tracker-source-notif.c
@@ -119,6 +119,9 @@ notifier_event_cb (GrlTrackerSourceNotify *self,
{
GrlMediaType type = media_type_from_graph (graph);
+ if (type == GRL_MEDIA_TYPE_UNKNOWN)
+ return;
+
handle_changes (self, events, type,
TRACKER_NOTIFIER_EVENT_CREATE,
GRL_CONTENT_ADDED);