From 6a89c9b2547b8c5590240de71919c181924f8c2d Mon Sep 17 00:00:00 2001 From: Ludovic Ferrandis Date: Wed, 15 May 2013 17:48:22 +0200 Subject: [Bug Fix] Incorrect CreateClass property name Fix https://github.com/01org/dleyna-server/issues/94 Signed-off-by: Ludovic Ferrandis --- libdleyna/server/props.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libdleyna/server/props.c b/libdleyna/server/props.c index 7e1eb65..f88c800 100644 --- a/libdleyna/server/props.c +++ b/libdleyna/server/props.c @@ -1135,6 +1135,7 @@ static GVariant *prv_compute_create_classes(GUPnPDIDLLiteContainer *container) GList *ptr; GUPnPDIDLLiteCreateClass *create_class; const char *content; + const char *ms2_class; gboolean inc_derived; g_variant_builder_init(&create_classes_vb, G_VARIANT_TYPE("a(sb)")); @@ -1146,10 +1147,11 @@ static GVariant *prv_compute_create_classes(GUPnPDIDLLiteContainer *container) create_class = ptr->data; content = gupnp_didl_lite_create_class_get_content( create_class); + ms2_class = dls_props_upnp_class_to_media_spec(content); inc_derived = gupnp_didl_lite_create_class_get_include_derived( create_class); g_variant_builder_add(&create_classes_vb, - "(sb)", content, inc_derived); + "(sb)", ms2_class, inc_derived); g_object_unref(ptr->data); ptr = g_list_next(ptr); } -- cgit v1.2.1