summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Ferrandis <ludovic.ferrandis@intel.com>2013-05-15 17:48:22 +0200
committerMark Ryan <mark.d.ryan@intel.com>2013-05-16 12:01:48 +0200
commit6a89c9b2547b8c5590240de71919c181924f8c2d (patch)
treea9c59182084b85995ec7bb0a9514989808df4f35
parent6b9359c8421f9e79733431042eeb2899356f4676 (diff)
downloaddleyna-server-6a89c9b2547b8c5590240de71919c181924f8c2d.tar.gz
[Bug Fix] Incorrect CreateClass property name
Fix https://github.com/01org/dleyna-server/issues/94 Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
-rw-r--r--libdleyna/server/props.c4
1 files changed, 3 insertions, 1 deletions
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);
}