[grilo-plugins] upnp: return NULL if there are no tags



commit 97d67f73ad6cae4963bb9796be53d3566ce70e75
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon May 12 22:28:41 2014 +0000

    upnp: return NULL if there are no tags
    
    If the source does not have tags, let's return NULL instead of an array with a
    NULL string.

 src/upnp/grl-upnp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/upnp/grl-upnp.c b/src/upnp/grl-upnp.c
index 4288925..024bfeb 100644
--- a/src/upnp/grl-upnp.c
+++ b/src/upnp/grl-upnp.c
@@ -247,7 +247,7 @@ grl_upnp_source_new (const gchar *source_id,
                         "source-name", name,
                         "source-desc", source_desc,
                         "source-icon", icon,
-                         "source-tags", tags,
+                         "source-tags", tags[0]? tags: NULL,
                         NULL);
 
   source->priv->upnp_name = g_strdup (name);


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