[grilo-plugins] dmap: Add "supported-media" metadata for sources



commit e97b4845f318cd86f0cb6b0e5210359203e2fc51
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Sep 14 22:10:08 2016 +0200

    dmap: Add "supported-media" metadata for sources
    
    Stop the DMAP and DAAP servers showing up in Videos, by setting which
    type of media they support.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771446

 src/dmap/grl-daap.c |    1 +
 src/dmap/grl-dpap.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/dmap/grl-daap.c b/src/dmap/grl-daap.c
index 796234d..befbc62 100644
--- a/src/dmap/grl-daap.c
+++ b/src/dmap/grl-daap.c
@@ -176,6 +176,7 @@ grl_daap_source_new (DMAPMdnsBrowserService *service)
                          "source-id",   source_id,
                          "source-name", service->name,
                          "source-desc", source_desc,
+                         "supported-media", GRL_SUPPORTED_MEDIA_AUDIO,
                          NULL);
 
   source->priv->service = service;
diff --git a/src/dmap/grl-dpap.c b/src/dmap/grl-dpap.c
index 86fad62..1ac1536 100644
--- a/src/dmap/grl-dpap.c
+++ b/src/dmap/grl-dpap.c
@@ -176,6 +176,7 @@ grl_dpap_source_new (DMAPMdnsBrowserService *service)
                          "source-id",   source_id,
                          "source-name", service->name,
                          "source-desc", source_desc,
+                         "supported-media", GRL_SUPPORTED_MEDIA_IMAGE,
                          NULL);
 
   source->priv->service = service;


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