[grilo-plugins/wip/carlosg/tracker3: 6/10] tracker3: Ignore changes in unhandled graphs
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/carlosg/tracker3: 6/10] tracker3: Ignore changes in unhandled graphs
- Date: Sun, 23 Aug 2020 18:50:59 +0000 (UTC)
commit 9b8e3ba0fb7b7a80e5aee40180f1c8087461db63
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 21 20:00:04 2020 +0200
tracker3: Ignore changes in unhandled graphs
We are essentially interested in data from audio/video/image graphs.
Everything is foreign to this plugin.
src/tracker3/grl-tracker-source-notif.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/tracker3/grl-tracker-source-notif.c b/src/tracker3/grl-tracker-source-notif.c
index dafcf49f..f087e957 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]