[grilo-plugins/wip/carlosg/tracker3: 25/29] tracker3: Ignore changes in unhandled graphs




commit ffba80e7665166ecfd69bde0090c0fc1822f1b12
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]