[grilo-plugins] [upnp] Keep always root category ID as NULL
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] [upnp] Keep always root category ID as NULL
- Date: Mon, 24 May 2010 10:28:50 +0000 (UTC)
commit f319fc1943dc796e2eb30fad99cd409adc31fb33
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Mon May 24 10:00:49 2010 +0200
[upnp] Keep always root category ID as NULL
src/upnp/grl-upnp.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/upnp/grl-upnp.c b/src/upnp/grl-upnp.c
index c98f3cb..1aa5e42 100644
--- a/src/upnp/grl-upnp.c
+++ b/src/upnp/grl-upnp.c
@@ -862,7 +862,12 @@ build_media_from_didl (GrlMedia *content,
}
id = gupnp_didl_lite_object_get_id (didl_node);
- grl_media_set_id (media, id);
+ /* Root category's id is always NULL */
+ if (g_strcmp0 (id, "0") == 0) {
+ grl_media_set_id (media, NULL);
+ } else {
+ grl_media_set_id (media, id);
+ }
didl_props = didl_get_supported_resources (didl_node);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]