[totem] grilo: Blacklist sources by prefix



commit 758facdd26e5ae8ad14d6293cd5193c2e4a80d6a
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 16 17:19:35 2014 +0100

    grilo: Blacklist sources by prefix
    
    So that grl-upnp can eventually be blacklisted and the dleyna
    source used instead.

 src/plugins/grilo/totem-grilo.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index e11f52a..84526cd 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -810,8 +810,10 @@ source_is_blacklisted (GrlSource *source)
        const gchar *id = grl_source_get_id (source);
        const gchar **s = BLACKLIST_SOURCES;
 
+       g_assert (id);
+
        while (*s) {
-               if (g_strcmp0 (*s, id) == 0)
+               if (g_str_has_prefix (id, *s))
                        return TRUE;
                s++;
        }


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