[totem] grilo: Only run local metadata checks for local files



commit 0ab3e6107b5367a2ce256e88a890af45e8d1852d
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 22 14:07:10 2014 +0100

    grilo: Only run local metadata checks for local files

 src/plugins/grilo/totem-grilo.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 9f88ebe..9b93ab3 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -396,6 +396,11 @@ add_local_metadata (TotemGriloPlugin *self,
 {
        GrlOperationOptions *options;
 
+       /* This is very slow and sync, so don't run it
+        * for non-local media */
+       if (!g_str_equal (grl_media_get_source (media), "grl-tracker-source"))
+               return;
+
        options = grl_operation_options_new (NULL);
        grl_operation_options_set_flags (options, GRL_RESOLVE_FULL);
        grl_source_resolve_sync (self->priv->local_metadata_src,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]