[totem] grilo: Hide non-video sources



commit c497a32fc25fe90731ff61d497695e5a3aaf12ad
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 7 16:37:34 2013 +0200

    grilo: Hide non-video sources
    
    Sources such as Jamendo should not show up in Totem, as they
    only offer audio media.

 src/plugins/grilo/totem-grilo.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 9a4aece..727da73 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -805,7 +805,8 @@ source_added_cb (GrlRegistry *registry,
        TotemGriloPlugin *self;
        GrlSupportedOps ops;
 
-       if (source_is_blacklisted (source)) {
+       if (source_is_blacklisted (source) ||
+           !(grl_source_get_supported_media (source) & GRL_MEDIA_TYPE_VIDEO)) {
                grl_registry_unregister_source (registry,
                                                source,
                                                NULL);


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